fix(useArrayData): ensure userOptions are applied correctly
gitea/salix-front/pipeline/pr-dev Something is wrong with the build of this commit
Details
gitea/salix-front/pipeline/pr-dev Something is wrong with the build of this commit
Details
This commit is contained in:
parent
8e935daad4
commit
5759c2aeeb
|
@ -39,6 +39,8 @@ export function useArrayData(key, userOptions) {
|
||||||
setCurrentFilter();
|
setCurrentFilter();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (userOptions) setOptions(userOptions);
|
||||||
|
|
||||||
function setOptions(params) {
|
function setOptions(params) {
|
||||||
if (!params) return;
|
if (!params) return;
|
||||||
const allowedOptions = [
|
const allowedOptions = [
|
||||||
|
|
Loading…
Reference in New Issue