Skip to content

Commit 3b41f31

Browse files
committed
fix: cursor comment
Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
1 parent 92288ca commit 3b41f31

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • services/libs/data-access-layer/src/affiliations

services/libs/data-access-layer/src/affiliations/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,9 @@ function buildTimeline(
262262
})
263263
currentOrg = winningAffiliation
264264
currentWindowStart = boundaryDate
265+
} else if (currentOrg.id !== winningAffiliation.id) {
266+
// Same org, different record — update so the final window closure uses the correct dateEnd
267+
currentOrg = winningAffiliation
265268
}
266269
}
267270

0 commit comments

Comments
 (0)