SYNC: close chart fix

This commit is contained in:
SPRINX0\prochazka
2025-06-18 10:17:26 +02:00
committed by Diflow
parent 83620848f2
commit 9c7dd5ed1c

View File

@@ -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);
},