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 24, 2024
1 parent 275a4b9 commit b24c508
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 b24c508

Please sign in to comment.