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