Skip to content

Commit

Permalink
Tweak translations to fit big data
Browse files Browse the repository at this point in the history
  • Loading branch information
rijkvanzanten committed Sep 16, 2021
1 parent abdabe2 commit 7163e73
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions app/src/interfaces/translations/translations.vue
Expand Up @@ -367,9 +367,7 @@ export default defineComponent({
}
async function loadItems() {
const pkField = translationsPrimaryKeyField.value;
if (pkField === null || !props.value || props.value.length === 0) return;
if (!translationsRelation.value?.field) return;
loading.value = true;
Expand All @@ -379,8 +377,8 @@ export default defineComponent({
fields: '*',
limit: -1,
filter: {
[pkField]: {
_in: props.value,
[translationsRelation.value.field]: {
_eq: props.primaryKey,
},
},
},
Expand Down

0 comments on commit 7163e73

Please sign in to comment.