mirror of
https://github.com/directus/directus.git
synced 2026-01-24 11:18:04 -05:00
Fix/issue 16692 and issue 16437 (#17186)
* Issue 16437 solved * Cleanup optional check Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
This commit is contained in:
@@ -67,7 +67,7 @@ export default defineComponent({
|
||||
},
|
||||
typeAllowList: {
|
||||
type: Array as PropType<string[]>,
|
||||
default: () => [],
|
||||
default: undefined,
|
||||
},
|
||||
placeholder: {
|
||||
type: String,
|
||||
@@ -94,7 +94,7 @@ export default defineComponent({
|
||||
!!field.schema?.is_primary_key ||
|
||||
props.disabledFields.includes(field.field) ||
|
||||
props.typeDenyList.includes(field.type) ||
|
||||
!props.typeAllowList.includes(field.type),
|
||||
!props.typeAllowList?.includes(field.type),
|
||||
}));
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user