Fixed remove filter
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
1fed4c7913
commit
ab776fc652
|
@ -158,7 +158,6 @@ export default class Contextmenu {
|
||||||
this.exprBuilder({param, value})
|
this.exprBuilder({param, value})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
console.log(where);
|
|
||||||
|
|
||||||
this.model.addFilter({where});
|
this.model.addFilter({where});
|
||||||
}
|
}
|
||||||
|
@ -187,18 +186,12 @@ export default class Contextmenu {
|
||||||
|
|
||||||
if (prop === 'and') {
|
if (prop === 'and') {
|
||||||
for (let [index, param] of instance[prop].entries()) {
|
for (let [index, param] of instance[prop].entries()) {
|
||||||
if (param === undefined)
|
|
||||||
console.log('param undefined');
|
|
||||||
|
|
||||||
const [key] = Object.keys(param);
|
const [key] = Object.keys(param);
|
||||||
if (key == findProp)
|
if (key == findProp)
|
||||||
instance[prop].splice(index, 1);
|
instance[prop].splice(index, 1);
|
||||||
|
|
||||||
if (instance[prop] instanceof Array) {
|
if (param[key] instanceof Array)
|
||||||
if (!instance[prop][index]) return;
|
removeProp(param, filterKey, key);
|
||||||
const [firstKey] = Object.keys(instance[prop][index]);
|
|
||||||
removeProp(instance[prop][index], filterKey, firstKey);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue