We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d61e94 commit 9ed5ccaCopy full SHA for 9ed5cca
packages/sanity/src/core/form/inputs/CrossDatasetReferenceInput/useReferenceInfo.ts
@@ -78,7 +78,7 @@ export function useReferenceInfo(
78
// workaround for a "bug" with useMemoObservable that doesn't
79
// return the initial value upon resubscription
80
const previousId = usePrevious(doc._id, doc._id)
81
- if (previousId !== doc._id) {
+ if (doc._id && previousId !== doc._id) {
82
return INITIAL_LOADING_STATE
83
}
84
return referenceInfo
0 commit comments