mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
@@ -305,8 +305,9 @@ export default defineComponent({
|
||||
|
||||
const duplicable = computed(() => {
|
||||
return (
|
||||
['o2m', 'm2m', 'm2o', 'files', 'file', 'm2a'].includes(props.field.type) === false &&
|
||||
props.field.schema?.is_primary_key === false
|
||||
['o2m', 'm2m', 'm2o', 'files', 'file', 'm2a'].includes(
|
||||
getLocalTypeForField(props.field.collection, props.field.field)
|
||||
) === false && props.field.schema?.is_primary_key === false
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user