Correctly default to + in singleton primary key (#12995)

Fixes #12985
This commit is contained in:
Rijk van Zanten
2022-04-25 10:59:28 -04:00
committed by GitHub
parent 70c70af4ee
commit 9fe1dfc070

View File

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