From 301db2e1206e046a9ecc5fcb45580a775d48a2f8 Mon Sep 17 00:00:00 2001 From: Rijk van Zanten Date: Fri, 20 Aug 2021 00:36:58 +0200 Subject: [PATCH] Prevent 400 error on translations load for to-be-created items (#7513) Fixes #7477 --- app/src/interfaces/translations/translations.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/interfaces/translations/translations.vue b/app/src/interfaces/translations/translations.vue index ef115d8b26..8c1398e8d5 100644 --- a/app/src/interfaces/translations/translations.vue +++ b/app/src/interfaces/translations/translations.vue @@ -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;