mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-02-12 05:51:45 +01:00
svelte state_referenced_locally warning fixes
- change to derived where possible - suppress warning elsewhere - discussion here: sveltejs/svelte/issues/17289
This commit is contained in:
@@ -49,11 +49,13 @@
|
||||
/* State Init */
|
||||
let isHistogramConfigOpen = $state(false);
|
||||
let isScatterPlotConfigOpen = $state(false);
|
||||
let metricsInHistograms = $state(presetMetricsInHistograms);
|
||||
let metricsInScatterplots = $state(presetMetricsInScatterplots);
|
||||
let selectedMetric1 = $state(null);
|
||||
let selectedMetric2 = $state(null);
|
||||
|
||||
/* Derived */
|
||||
let metricsInHistograms = $derived(presetMetricsInHistograms);
|
||||
let metricsInScatterplots = $derived(presetMetricsInScatterplots);
|
||||
|
||||
/* Functions */
|
||||
function updateConfiguration(data) {
|
||||
updateConfigurationMutation({
|
||||
|
||||
Reference in New Issue
Block a user