Fix duplicable check

Fixes #3239
This commit is contained in:
rijkvanzanten
2021-01-13 15:51:25 -05:00
parent 77d8cf85ad
commit 2a95f62b20

View File

@@ -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
);
});