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 ef2cd34 + 0c062d3 commit abad339Copy full SHA for abad339
1 file changed
src/component/TabBar.jsx
@@ -16,7 +16,7 @@ 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) {
+ if (!superState.curGraphIndex && superState.graphs.length === 0) {
20
dispatcher({ type: T.SET_CUR_INSTANCE, payload: null });
21
}
22
};
0 commit comments