Skip to content

Commit d65c43a

Browse files
committed
fix(data-modeling): fix apply edits action
1 parent 4d63d55 commit d65c43a

File tree

1 file changed

+1
-4
lines changed
  • packages/compass-data-modeling/src/store

1 file changed

+1
-4
lines changed

packages/compass-data-modeling/src/store/diagram.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,7 @@ export const diagramReducer: Reducer<DiagramState> = (
121121
...state,
122122
edits: {
123123
prev: [...state.edits.prev, state.edits.current],
124-
current: {
125-
...state.edits.current,
126-
edits: [...state.edits.current, action.edit],
127-
},
124+
current: [...state.edits.current, action.edit],
128125
next: [],
129126
},
130127
};

0 commit comments

Comments
 (0)