mirror of
https://github.com/directus/directus.git
synced 2026-01-29 08:17:55 -05:00
@@ -361,7 +361,7 @@ export default defineComponent({
|
||||
const internalPrimaryKey = computed(() => {
|
||||
if (isNew.value) return '+';
|
||||
|
||||
if (isSingleton.value) return item.value?.[primaryKeyField.value?.field];
|
||||
if (isSingleton.value) return item.value?.[primaryKeyField.value?.field] ?? '+';
|
||||
|
||||
return props.primaryKey;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user