From 78953848bbfd0deb20846e2c45e549532b8984e3 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 13 Aug 2024 09:19:16 +0100 Subject: [PATCH] Fix variable name error in indicator sets --- packages/client/src/components/preview/IndicatorSet.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/client/src/components/preview/IndicatorSet.svelte b/packages/client/src/components/preview/IndicatorSet.svelte index dfea20a45f..4af1224622 100644 --- a/packages/client/src/components/preview/IndicatorSet.svelte +++ b/packages/client/src/components/preview/IndicatorSet.svelte @@ -67,14 +67,14 @@ } const createIntersectionCallback = idx => entries => { - if (callbackCount >= observers.length) { + if (callbackCount >= intersectionObservers.length) { return } nextState.indicators[idx].visible = nextState.indicators[idx].insideModal || nextState.indicators[idx].insideSidePanel || entries[0].isIntersecting - if (++callbackCount === observers.length) { + if (++callbackCount === intersectionObservers.length) { state = nextState updating = false }