Skip to content

Commit e7f78a4

Browse files
fix volume update action spec
1 parent b88f01f commit e7f78a4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

frontend/javascripts/test/reducers/update_action_application/volume.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,19 +146,19 @@ describe("Update Action Application for VolumeTracing", () => {
146146
: _.range(beforeVersionIndex, userActions.length + 1);
147147

148148
test.each(afterVersionIndices)("To v=%i", (afterVersionIndex: number) => {
149-
const state2WithActiveTree = applyActions(
149+
const state2WithActiveCell = applyActions(
150150
initialState,
151151
userActions.slice(0, beforeVersionIndex),
152152
);
153153

154-
const state2WithoutActiveState = applyActions(state2WithActiveTree, [
154+
const state2WithoutActiveState = applyActions(state2WithActiveCell, [
155155
VolumeTracingActions.setActiveCellAction(0),
156156
setActiveUserBoundingBoxId(null),
157157
]);
158158

159159
const actionsToApply = userActions.slice(beforeVersionIndex, afterVersionIndex + 1);
160160
const state3 = applyActions(
161-
state2WithActiveTree,
161+
state2WithActiveCell,
162162
actionsToApply.concat([
163163
VolumeTracingActions.setActiveCellAction(0),
164164
setActiveUserBoundingBoxId(null),

frontend/javascripts/viewer/view/right-border-tabs/trees_tab/tree_hierarchy_view_helpers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export function makeBasicGroupObject(
3333
groupId,
3434
name,
3535
children,
36+
isExpanded: false, // TODOM: check whether this does not change the default behaviour
3637
};
3738
}
3839

0 commit comments

Comments
 (0)