fix(HistoryMemo): Segmentation delete wasn't remembered (#5775)
Will address a few more comments in a separate PR released after this one into 3.13 * fix(HistoryMemo): Segmentation delete wasn't remembered * Temporary add of package.json linking * fix: Use newer dcmjs version and delete segmentation with history cs3d
This commit is contained in:
1 parent
3b9d3babf9
commit
48f2f6fb13
22 files changed
+363
-275
No files matched your search
@@ -59,6 +59,12 @@ export async function updateSegmentationStats({
|
||||
Object.entries(stats).forEach(([segmentIndex, segmentStats]) => {
|
||||
const index = parseInt(segmentIndex);
|
||||
|
||||
if (!updatedSegmentation.segments[index]) {
|
||||
// This happens when a segment is being restored
|
||||
console.warn('Segment not found to update cached stats:', index);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!updatedSegmentation.segments[index].cachedStats) {
|
||||
updatedSegmentation.segments[index].cachedStats = {};
|
||||
hasUpdates = true;
|
||||
|
||||
Reference in new issue
Block a user