Skip to content

Commit d103d09

Browse files
Fix bug where initial proofreading action had outdated annotation version present for necessary requests
1 parent 8763cae commit d103d09

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

frontend/javascripts/viewer/model/sagas/volume/proofread_saga.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1295,7 +1295,6 @@ type Preparation = {
12951295

12961296
function* prepareSplitOrMerge(isSkeletonProofreading: boolean): Saga<Preparation | null> {
12971297
const volumeTracingLayer = yield* select((state) => getActiveSegmentationTracingLayer(state));
1298-
const annotationVersion = yield* select((state) => state.annotation.version);
12991298
const volumeTracing = yield* select((state) => getActiveSegmentationTracing(state));
13001299
if (volumeTracingLayer == null || volumeTracing == null) {
13011300
return null;
@@ -1410,6 +1409,9 @@ function* prepareSplitOrMerge(isSkeletonProofreading: boolean): Saga<Preparation
14101409
return null;
14111410
}
14121411

1412+
// Getting latest annotation version as it might have changed due to e.g. making the mapping editable.
1413+
const annotationVersion = yield* select((state) => state.annotation.version);
1414+
14131415
return {
14141416
agglomerateFileMag,
14151417
getDataValue,

0 commit comments

Comments
 (0)