From 952f7c741485a96a9f22910604e32c6de1a52e99 Mon Sep 17 00:00:00 2001 From: richardscull <106016833+richardscull@users.noreply.github.com> Date: Sat, 7 Feb 2026 14:06:24 +0200 Subject: [PATCH] fix: page crash while using wiki accordion --- app/(website)/wiki/page.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/(website)/wiki/page.tsx b/app/(website)/wiki/page.tsx index 18b361f..9302206 100644 --- a/app/(website)/wiki/page.tsx +++ b/app/(website)/wiki/page.tsx @@ -162,7 +162,8 @@ export default function Wiki() { target?.scrollIntoView({ behavior: "smooth" }); } } - }, [pathname, wikiContent]); + // eslint-disable-next-line react-hooks/exhaustive-deps -- causes unwanted resets of the accordion + }, [pathname]); useEffect(() => { const element = wikiContent[tryParseNumber(value) ?? -1];