Fix typescript error.

This commit is contained in:
Michael Lipp 2025-01-25 14:33:56 +01:00
parent a0d626cc31
commit 574ad5226b

View file

@ -75,17 +75,17 @@ window.orgJDrupesVmOperatorVmMgmt.initPreview = (previewDom: HTMLElement,
chart = new CpuRamChart(canvas, chartData);
})
watch(chartDateUpdate, (_) => {
watch(chartDateUpdate, (_: never) => {
chart?.update();
})
watch(JGWC.langRef(), (_) => {
watch(JGWC.langRef(), (_: never) => {
chart?.localizeChart();
})
const period: Ref<string> = ref<string>("day");
watch(period, (_) => {
watch(period, (_: never) => {
const hours = (period.value === "day") ? 24 : 1;
chart?.setPeriod(hours * 3600 * 1000);
});