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})
|
||||
);
|
||||
}
|
||||
console.log(where);
|
||||
|
||||
this.model.addFilter({where});
|
||||
}
|
||||
|
@ -187,18 +186,12 @@ export default class Contextmenu {
|
|||
|
||||
if (prop === 'and') {
|
||||
for (let [index, param] of instance[prop].entries()) {
|
||||
if (param === undefined)
|
||||
console.log('param undefined');
|
||||
|
||||
const [key] = Object.keys(param);
|
||||
if (key == findProp)
|
||||
instance[prop].splice(index, 1);
|
||||
|
||||
if (instance[prop] instanceof Array) {
|
||||
if (!instance[prop][index]) return;
|
||||
const [firstKey] = Object.keys(instance[prop][index]);
|
||||
removeProp(instance[prop][index], filterKey, firstKey);
|
||||
}
|
||||
if (param[key] instanceof Array)
|
||||
removeProp(param, filterKey, key);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue