Skip to content

Commit 41dd2f9

Browse files
authored
Merge branch 'ControlCore-Project:main' into image-fix
2 parents c9ee59a + 0ba928a commit 41dd2f9

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

server/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ def apply_caching(response):
2424

2525

2626
if __name__ == '__main__':
27-
app.run(port=os.getenv('PORT'), debug=True)
27+
app.run(port=os.getenv('PORT'))

src/component/TabBar.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ 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) {
20+
dispatcher({ type: T.SET_CUR_INSTANCE, payload: null });
21+
}
1922
};
2023
const editCur = (e) => {
2124
e.stopPropagation();

src/toolbarActions/toolbarFunctions.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ const editElement = (state, setState) => {
6969
const deleteElem = (state) => {
7070
const tid = new Date().getTime();
7171
state.eleSelectedPayload.ids.forEach((id) => getGraphFun(state).deleteElem(id, tid));
72+
// eslint-disable-next-line
73+
state.eleSelectedPayload.type = 'MIX';
7274
};
7375

7476
const downloadImg = (state, setState, format) => {

0 commit comments

Comments
 (0)