fix: seg sync for data without FOR (#5565)

* fix: seg sync for data without FOR

* test commit to trigger deploy re-run

* test commit to trigger deploy re-run

* Revert "test commit to trigger deploy re-run"

This reverts commit 42c532c6f404798e39e3d137fff7c1e7569956ad.

* chore: comments updated

* review commnets

---------

Co-authored-by: Bill Wallace <wayfarer3130@gmail.com>
This commit is contained in:
Devu-trenserandBill Wallace authored and GitHub committed 2025-12-15 08:49:43 -05:00
1 parent 31ac27d5a0
commit 6c628e0937
2 files changed
+42 -3

No files matched your search

@@ -0,0 +1,18 @@
/**
* Checks whether two viewports share at least one common display set.
*
* This method checks to see if the source and target share a display set.
* It performs an O(n * m) comparison between the display sets of each viewport.
* Since each viewport typically contains only a small number of display sets (≤ 5),
* the computational cost is negligible.
*
* @param sourceDisplaySetUIDs - Array of displaySetInstanceUID from the source viewport.
* @param targetDisplaySetUIDs - Array of displaySetInstanceUID from the target viewport.
* @returns true if at least one display set is common; false otherwise.
*/
export function isAnyDisplaySetCommon(
sourceDisplaySetUIDs: string[],
targetDisplaySetUIDs: string[]
): boolean {
return sourceDisplaySetUIDs.some(uid => targetDisplaySetUIDs.includes(uid));
}