diff options
author | Sunil Shetye | 2025-06-02 15:57:32 +0530 |
---|---|---|
committer | Sunil Shetye | 2025-06-02 15:57:32 +0530 |
commit | 4f516bcd665b7b19980f483cec9a22e1124fc216 (patch) | |
tree | 16e63eb6382500a4acb2264672a193e98b631cbb | |
parent | 7de391f75da0df8019304d7a132f22605558fcc6 (diff) | |
download | Common-Interface-Project-4f516bcd665b7b19980f483cec9a22e1124fc216.tar.gz Common-Interface-Project-4f516bcd665b7b19980f483cec9a22e1124fc216.tar.bz2 Common-Interface-Project-4f516bcd665b7b19980f483cec9a22e1124fc216.zip |
fix toggle collapse payload
-rw-r--r-- | blocks/eda-frontend/src/redux/schematicEditorSlice.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/blocks/eda-frontend/src/redux/schematicEditorSlice.js b/blocks/eda-frontend/src/redux/schematicEditorSlice.js index 1e4380ed..b0a5d88f 100644 --- a/blocks/eda-frontend/src/redux/schematicEditorSlice.js +++ b/blocks/eda-frontend/src/redux/schematicEditorSlice.js @@ -104,11 +104,11 @@ const schematicEditorSlice = createSlice({ initialState, reducers: { toggleCollapse: (state, action) => { - const existingState = state.collapse[action.payload.id] + const existingState = state.collapse[action.payload] Object.keys(state.collapse).forEach((key) => { state.collapse[key] = false }) - state.collapse[action.payload.id] = !existingState + state.collapse[action.payload] = !existingState }, toggleSimulate: (state) => { state.isSimulate = !state.isSimulate |