Skip to content

Commit

Permalink
fix(core): update DocumentStatusLine
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrobonamin committed Oct 28, 2024
1 parent e2b21de commit 0529e28
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand All @@ -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

Expand Down

0 comments on commit 0529e28

Please sign in to comment.