@@ -132,7 +132,13 @@ export const ZodFieldLayout = ({
|
||||
<DropdownList
|
||||
currentItem={data ?? layout?.defaultValue}
|
||||
onItemSelect={onDataChange}
|
||||
items={innerSchema._def.values}
|
||||
items={
|
||||
layout?.hiddenItems
|
||||
? innerSchema._def.values.filter(
|
||||
(v: any) => !layout.hiddenItems.includes(v)
|
||||
)
|
||||
: innerSchema._def.values
|
||||
}
|
||||
label={layout?.label}
|
||||
helperText={
|
||||
layout?.helperText ? (
|
||||
|
||||
Reference in New Issue
Block a user