feature/ItemListFilter #324

Merged
jsegarra merged 11 commits from :feature/ItemListFilter into dev 2024-04-29 06:02:42 +00:00
1 changed files with 11 additions and 0 deletions
Showing only changes of commit 4282463e51 - Show all commits

View File

@ -127,6 +127,17 @@ onMounted(async () => {
type: prop ? prop.type : null,
});
});
// Fill fieldFiltersValues with existent userParams
if (arrayData.store?.userParams) {
fieldFiltersValues.value = Object.entries(arrayData.store?.userParams)
.filter(([key, value]) => value && _moreFields.includes(key))
.map(([key, value]) => ({
name: key,
value,
selectedField: moreFields.value.find((field) => field.name === key),
}));
}
});
</script>