From b24c508f4ff267e75dbe104083c607701c72d502 Mon Sep 17 00:00:00 2001 From: Ash Date: Mon, 24 Jun 2024 11:50:58 +0100 Subject: [PATCH] fix(sanity): global perspective state restoration --- .../sanity/src/core/studio/components/navbar/StudioNavbar.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/sanity/src/core/studio/components/navbar/StudioNavbar.tsx b/packages/sanity/src/core/studio/components/navbar/StudioNavbar.tsx index 0246ff7d186..56c814f943a 100644 --- a/packages/sanity/src/core/studio/components/navbar/StudioNavbar.tsx +++ b/packages/sanity/src/core/studio/components/navbar/StudioNavbar.tsx @@ -168,7 +168,7 @@ export function StudioNavbar(props: Omit) { setDrawerOpen(true) }, []) - const release = useMemo(() => router.stickyParams.release, [router.stickyParams]) + const perspective = useMemo(() => router.stickyParams.perspective, [router.stickyParams]) const handleReleaseChange = useCallback( (element: ChangeEvent) => { @@ -239,7 +239,7 @@ export function StudioNavbar(props: Omit) { )} {/* TODO: Fix */} - {/* eslint-disable-next-line i18next/no-literal-string */} {/* eslint-disable-next-line i18next/no-literal-string */}