Skip to content

Commit b15a126

Browse files
authored
Merge branch 'ControlCore-Project:main' into fileHandler-fix
2 parents 0a82255 + fc5830e commit b15a126

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/component/File-drag-drop.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const app = ({ superState, dispatcher }) => {
3939
fileRef.current.value = null;
4040
if (e.dataTransfer.files.length === 1
4141
&& e.dataTransfer.files[0].name.split('.').slice(-1)[0] === 'graphml') {
42-
readFile(superState, dispatcher, { target: e.dataTransfer });
42+
readFile(superState, dispatcher, e.dataTransfer.files[0]);
4343
}
4444
});
4545
}, []);

src/toolbarActions/toolbarList.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const toolbarList = (state, dispatcher) => [
5757
text: 'Save As',
5858
icon: FaSave,
5959
action: (s, d) => saveAction(s, d),
60-
active: true,
60+
active: state.curGraphInstance,
6161
visibility: true,
6262
},
6363
{

0 commit comments

Comments
 (0)