We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a103763 commit ed7cfffCopy full SHA for ed7cfff
src/fields/config/types.ts
@@ -297,7 +297,7 @@ export type ValueWithRelation = {
297
}
298
299
export function valueIsValueWithRelation(value: unknown): value is ValueWithRelation {
300
- return typeof value === 'object' && 'relationTo' in value && 'value' in value;
+ return value !== null && typeof value === 'object' && 'relationTo' in value && 'value' in value;
301
302
303
export type RelationshipValue = (string | number)
0 commit comments