Skip to content

Commit 49f4b4c

Browse files
committed
disabling button
1 parent 0217ed9 commit 49f4b4c

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/toolbarActions/toolbarFunctions.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ const deleteElem = (state) => {
7272
state.eleSelectedPayload.ids.forEach((id) => getGraphFun(state).deleteElem(id, tid));
7373
// eslint-disable-next-line
7474
state.eleSelectedPayload.type = 'MIX';
75+
// eslint-disable-next-line
76+
state.eleSelected = false;
7577
};
7678

7779
const downloadImg = (state, setState, format) => {

src/toolbarActions/toolbarList.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ const toolbarList = (state, dispatcher) => [
6565
text: 'Empty',
6666
icon: FaThermometerEmpty,
6767
action: clearAll,
68-
active: true,
68+
active: state.curGraphInstance,
6969
visibility: true,
7070
hotkey: 'Ctrl+Backspace',
7171
},

0 commit comments

Comments
 (0)