Fix reactivity issue in series header

This commit is contained in:
Caleb Owens 2024-11-06 17:56:57 +01:00
parent 1bd0ab1719
commit 5def9c8724

View File

@ -11,8 +11,10 @@
const { series, disableSelector }: Props = $props();
let shiftedSeries = series.slice(1);
let seriesTypes = shiftedSeries.map((s) => (s.patches[0] ? s.patches[0].status : 'local'));
const shiftedSeries = $derived(series.slice(1));
const seriesTypes = $derived(
shiftedSeries.map((s) => (s.patches[0] ? s.patches[0].status : 'local'))
);
</script>
<div class="stack-series-row">