We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 27e9773 + a778f9d commit 0ba928aCopy full SHA for 0ba928a
1 file changed
src/component/TabBar.jsx
@@ -16,6 +16,9 @@ const TabBar = ({ superState, dispatcher }) => {
16
if (!window.confirm('Do you confirm to close the tab? This action is irreversable.')) return;
17
localStorageManager.remove(superState.graphs[i] ? superState.graphs[i].graphID : null);
18
dispatcher({ type: T.REMOVE_GRAPH, payload: i });
19
+ if (!superState.curGraphIndex) {
20
+ dispatcher({ type: T.SET_CUR_INSTANCE, payload: null });
21
+ }
22
};
23
const editCur = (e) => {
24
e.stopPropagation();
0 commit comments