Skip to content

Commit 777f39f

Browse files
fix typing
1 parent 51f60d7 commit 777f39f

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

frontend/javascripts/viewer/model/sagas/saving/save_saga.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,7 @@ export function* tryToIncorporateActions(
388388

389389
// User specific skeleton actions -- only applied if coming from current user.
390390
case "updateActiveNode":
391+
case "updateActiveTree":
391392
case "updateTreeVisibility":
392393
case "updateTreeGroupVisibility":
393394
case "updateUserBoundingBoxVisibilityInSkeletonTracing":

frontend/javascripts/viewer/view/version_entry.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ import type {
5050
SplitAgglomerateUpdateAction,
5151
UpdateActiveNodeUpdateAction,
5252
UpdateActiveSegmentIdUpdateAction,
53+
UpdateActiveTreeUpdateAction,
5354
UpdateAnnotationLayerNameUpdateAction,
5455
UpdateBucketUpdateAction,
5556
UpdateCameraAnnotationAction,
@@ -433,6 +434,13 @@ const descriptionFns: Record<
433434
icon: <EditOutlined />,
434435
};
435436
},
437+
// Should never be sent to the backend as the backend does not understand this action. Is filtered out before sending to backend.
438+
updateActiveTree: (action: AsServerAction<UpdateActiveTreeUpdateAction>): Description => {
439+
return {
440+
description: `Updated the active tree id to ${action.value.activeTree} and node id to ${action.value.activeNode}`,
441+
icon: <EditOutlined />,
442+
};
443+
},
436444
updateCamera: (_action: AsServerAction<UpdateCameraAnnotationAction>): Description => {
437445
return {
438446
description: "Adjusted the camera",

0 commit comments

Comments
 (0)