feat(SPA): media field type
This commit is contained in:
1 parent
a2d596f4ca
commit
3e7fc9a4a5
57 files changed
+6109
-75
No files matched your search
@@ -1,6 +1,7 @@
|
||||
import {
|
||||
effectiveDefault,
|
||||
isUnique,
|
||||
supportsChoices,
|
||||
supportsLimits,
|
||||
trimmedOptions,
|
||||
type BuilderField,
|
||||
@@ -59,7 +60,7 @@ export function payloadField(field: BuilderField): PayloadField {
|
||||
default: defaultFor(field),
|
||||
min: limit(field, field.min),
|
||||
max: limit(field, field.max),
|
||||
options: field.type === 'select' ? trimmedOptions(field) : [],
|
||||
options: supportsChoices(field.type) ? trimmedOptions(field) : [],
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user