mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-03 07:03:59 +00:00
SYNC: close chart fix
This commit is contained in:
committed by
Diflow
parent
83620848f2
commit
9c7dd5ed1c
@@ -94,6 +94,7 @@
|
|||||||
onCloseChart: () => {
|
onCloseChart: () => {
|
||||||
charts = charts.filter(x => x.resultIndex !== info.resultIndex);
|
charts = charts.filter(x => x.resultIndex !== info.resultIndex);
|
||||||
onSetFrontMatterField?.(`chart-${info.resultIndex + 1}`, undefined);
|
onSetFrontMatterField?.(`chart-${info.resultIndex + 1}`, undefined);
|
||||||
|
onSetFrontMatterField?.(`selected-chart`, undefined);
|
||||||
const value = _.findIndex(allTabs, x => x.isResult && x.resultIndex === info.resultIndex);
|
const value = _.findIndex(allTabs, x => x.isResult && x.resultIndex === info.resultIndex);
|
||||||
domTabs.setValue(value >= 0 ? value : 0);
|
domTabs.setValue(value >= 0 ? value : 0);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user