Skip to content

Commit

Permalink
fixup! chore: merge next into corel
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoerge committed Oct 15, 2024
1 parent ed00b56 commit f32a593
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {type SanityClient} from '@sanity/client'
import {type SanityDocument, type Schema} from '@sanity/types'
import {combineLatest, type Observable} from 'rxjs'
import {combineLatest, type Observable, of} from 'rxjs'
import {map, publishReplay, refCount, startWith, switchMap} from 'rxjs/operators'

import {getVersionFromId} from '../../../../util'
Expand Down Expand Up @@ -80,7 +80,7 @@ export const editState = memoize(
map((ev: PendingMutationsEvent) => (ev.phase === 'begin' ? LOCKED : NOT_LOCKED)),
startWith(NOT_LOCKED),
),
...(typeof versions.version === 'undefined' ? [] : [versions.version.snapshots$]),
typeof versions.version === 'undefined' ? of(undefined) : versions.version.snapshots$,
]),
),
swr(`${idPair.publishedId}-${idPair.draftId}`),
Expand Down

0 comments on commit f32a593

Please sign in to comment.