Skip to content

Commit

Permalink
removed delay between removing old root ids and adding new root ids f…
Browse files Browse the repository at this point in the history
…or a merge
  • Loading branch information
chrisj committed Sep 7, 2023
1 parent 5b12e4f commit 81124e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/neuroglancer/datasource/graphene/frontend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1105,10 +1105,10 @@ class GraphConnection extends SegmentationGraphSourceConnection {
segmentsToAdd.push(submission.mergedRoot);
}
}
const latestRoots = await this.graph.graphServer.filterLatestRoots(segmentsToAdd);
const segmentsState = this.layer.displayState.segmentationGroupState.value;
const {visibleSegments, selectedSegments} = segmentsState;
selectedSegments.delete(segmentsToRemove);
const latestRoots = await this.graph.graphServer.filterLatestRoots(segmentsToAdd);
this.meshAddNewSegments(latestRoots);
selectedSegments.add(latestRoots);
visibleSegments.add(latestRoots);
Expand Down

0 comments on commit 81124e7

Please sign in to comment.