Prevent 400 error on translations load for to-be-created items (#7513)

Fixes #7477
This commit is contained in:
Rijk van Zanten
2021-08-20 00:36:58 +02:00
committed by GitHub
parent ebb810b9af
commit 301db2e120

View File

@@ -275,6 +275,7 @@ export default defineComponent({
async function fetchKeyMap() {
if (!props.value) return;
if (keyMap.value) return;
if (!existingPrimaryKeys.value?.length) return;
const collection = translationsRelation.value?.collection;