resolveNullableLoadValue
resolveNullableLoadValue(
props):unknown
Defined in: packages/core/src/fields/utils.ts:288
Resolves a nullable field’s loaded form value from its stored document
value. A field with no natural empty input state of its own
(ADMIN_FIELDS[field.type].hasNullToggle — group/array/blocks/json/
richtext/checkbox) keeps a literal null so its FormFieldLayout null
toggle starts active; every other nullable field’s null becomes its own
defaultValue, since its control already shows that as “no value”.
Parameters
Section titled “Parameters”Input props.
The resolved field definition.
null
The field’s current value — only ever called with null.
Returns
Section titled “Returns”unknown
null for a toggle field, else field.defaultValue.