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