Skip to content

Commit

Permalink
fix(sanity): global perspective state restoration
Browse files Browse the repository at this point in the history
  • Loading branch information
juice49 committed Jun 27, 2024
1 parent 828d802 commit 66ced29
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export function StudioNavbar(props: Omit<NavbarProps, 'renderDefault'>) {
setDrawerOpen(true)
}, [])

const release = useMemo(() => router.stickyParams.release, [router.stickyParams])
const perspective = useMemo(() => router.stickyParams.perspective, [router.stickyParams])

const handleReleaseChange = useCallback(
(element: ChangeEvent<HTMLSelectElement>) => {
Expand Down Expand Up @@ -239,7 +239,7 @@ export function StudioNavbar(props: Omit<NavbarProps, 'renderDefault'>) {
)}
<Flex>
{/* TODO: Fix */}
<Select value={release} onChange={handleReleaseChange}>
<Select value={perspective} onChange={handleReleaseChange}>
{/* eslint-disable-next-line i18next/no-literal-string */}
<option value="">Published + Drafts</option>
{/* eslint-disable-next-line i18next/no-literal-string */}
Expand Down

0 comments on commit 66ced29

Please sign in to comment.