diff --git a/packages/sanity/src/structure/panes/document/statusBar/DocumentStatusLine.tsx b/packages/sanity/src/structure/panes/document/statusBar/DocumentStatusLine.tsx index 79976d6112d8..4c3cd9a0f19e 100644 --- a/packages/sanity/src/structure/panes/document/statusBar/DocumentStatusLine.tsx +++ b/packages/sanity/src/structure/panes/document/statusBar/DocumentStatusLine.tsx @@ -3,7 +3,6 @@ import {useEffect, useLayoutEffect, useState} from 'react' import {DocumentStatus, DocumentStatusIndicator, usePerspective, useSyncState} from 'sanity' import {Tooltip} from '../../../../ui-components' -import {usePaneRouter} from '../../../components/paneRouter' import {useDocumentPane} from '../useDocumentPane' import {DocumentStatusPulse} from './DocumentStatusPulse' @@ -20,8 +19,7 @@ export function DocumentStatusLine({singleLine}: DocumentStatusLineProps) { const [status, setStatus] = useState<'saved' | 'syncing' | null>(null) const syncState = useSyncState(documentId, documentType, {version: editState?.bundleId}) - const paneRouter = usePaneRouter() - const {currentGlobalBundle} = usePerspective(paneRouter.perspective) + const {currentGlobalBundle} = usePerspective() const lastUpdated = value?._updatedAt