From 69cabe1b7bde4d701face36a774972f073a4e116 Mon Sep 17 00:00:00 2001 From: Alexander Parlato Date: Mon, 6 Oct 2025 14:25:14 -1000 Subject: [PATCH] fix error --- src/LinesChart.svelte | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/LinesChart.svelte b/src/LinesChart.svelte index bad1e89..9e76a3a 100644 --- a/src/LinesChart.svelte +++ b/src/LinesChart.svelte @@ -88,15 +88,13 @@ let path; if (Array.isArray(width)) { - const [ - expressionType, - [interpolationType, interpolationBase], - [attribute], - ] = width; + let [expressionType, [interpolationType, interpolationBase], attribute] = + width; if ( expressionType === 'interpolate' && interpolationType === 'linear' && - attribute === 'zoom' + Array.isArray(attribute) && + attribute[0] === 'zoom' ) { // TODO look into base for interpolation