Skip to content

Commit 31320d4

Browse files
committed
fix(editor): fix issue where removing a property from component would not update editor state
update `UPDATE_PROPS` reducer logic to stop merging previous component state in order to allow new state to contain fewer object keys than previous state (allow deleting of component prop)
1 parent 36f3c57 commit 31320d4

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

packages/editor-core/src/reducer/reducer.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ const reducer = (state: any, action: any) => {
1919
return { ...state };
2020
case 'UPDATE_PROPS':
2121
state.components[action.id] = {
22-
...state.components[action.id],
2322
...action.props
2423
};
2524
return { ...state };

0 commit comments

Comments
 (0)