Skip to content

Commit e9929fc

Browse files
committed
reducer unmodified
1 parent ff9333f commit e9929fc

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/reducer/reducer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ const reducer = (state, action) => {
109109
}
110110
case T.CHANGE_TAB: return { ...state, curGraphIndex: action.payload };
111111

112-
case T.NEW_GRAPH: return { ...state, newGraphModal: true, fileHandle: null };
112+
case T.NEW_GRAPH: return { ...state, newGraphModal: true };
113113
case T.REMOVE_GRAPH: return {
114114
...state,
115115
graphs: state.graphs.filter((e, i) => i !== action.payload),

src/toolbarActions/toolbarFunctions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ async function saveGraphMLFile(state) {
8888
const stream = await graph.fileHandle.createWritable();
8989
await stream.write(getGraphFun(state).saveToFolder());
9090
await stream.close();
91-
} else if (state.fileHandle === null) {
91+
} else if (graph.fileHandle === null) {
9292
getGraphFun(state).saveWithoutFileHandle();
9393
} else {
9494
// eslint-disable-next-line no-alert

0 commit comments

Comments
 (0)