fix(useArrayData): ensure userOptions are applied correctly
gitea/salix-front/pipeline/pr-dev Something is wrong with the build of this commit Details

This commit is contained in:
Alex Moreno 2025-04-29 10:20:09 +02:00
parent 8e935daad4
commit 5759c2aeeb
1 changed files with 2 additions and 0 deletions

View File

@ -39,6 +39,8 @@ export function useArrayData(key, userOptions) {
setCurrentFilter();
});
if (userOptions) setOptions(userOptions);
function setOptions(params) {
if (!params) return;
const allowedOptions = [