fix: cache thumbnail in display set (#4782)

This commit is contained in:
Bill Wallace authored and GitHub committed 2025-02-18 18:19:09 -05:00
1 parent d26c9551b6
commit 2410c6a509
10 files changed
+47 -54

No files matched your search

@@ -809,7 +809,8 @@ class SegmentationService extends PubSubService {
if (!segmentIndex) {
// grab the next available segment index based on the object keys,
// so basically get the highest segment index value + 1
segmentIndex = Math.max(...Object.keys(csSegmentation.segments).map(Number)) + 1;
const segmentKeys = Object.keys(csSegmentation.segments);
segmentIndex = segmentKeys.length === 0 ? 1 : Math.max(...segmentKeys.map(Number)) + 1;
}
// update the segmentation