Skip to content

Commit 51ab6de

Browse files
committed
2 parents 611ec4a + abad339 commit 51ab6de

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/component/TabBar.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const TabBar = ({ superState, dispatcher }) => {
1616
if (!window.confirm('Do you confirm to close the tab? This action is irreversable.')) return;
1717
localStorageManager.remove(superState.graphs[i] ? superState.graphs[i].graphID : null);
1818
dispatcher({ type: T.REMOVE_GRAPH, payload: i });
19-
if (!superState.curGraphIndex) {
19+
if (!superState.curGraphIndex && superState.graphs.length === 0) {
2020
dispatcher({ type: T.SET_CUR_INSTANCE, payload: null });
2121
}
2222
};

0 commit comments

Comments
 (0)