From 98f08939d055663ed80091861abce90d5c07be6a Mon Sep 17 00:00:00 2001 From: James Ritchie Date: Fri, 2 May 2025 15:29:30 +0100 Subject: [PATCH] Fixes a console error introduced when updating the loading animation --- apps/webapp/app/components/primitives/LoadingBarDivider.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/webapp/app/components/primitives/LoadingBarDivider.tsx b/apps/webapp/app/components/primitives/LoadingBarDivider.tsx index d35067ea62..ee64ac4fc5 100644 --- a/apps/webapp/app/components/primitives/LoadingBarDivider.tsx +++ b/apps/webapp/app/components/primitives/LoadingBarDivider.tsx @@ -18,6 +18,8 @@ export function AnimationDivider({ isLoading }: LoadingBarDividerProps) { const [isPresent, safeToRemove] = usePresence(); useEffect(() => { + if (!scope.current) return; + if (isPresent) { const enterAnimation = async () => { await animate(