mirror of
https://github.com/prymitive/karma
synced 2026-05-07 03:26:52 +00:00
fix(ui): remove dead code
We check if filters match just before this loop
This commit is contained in:
@@ -238,32 +238,6 @@ class AlertStore {
|
||||
return;
|
||||
}
|
||||
|
||||
for (const filter of result.filters) {
|
||||
const storedIndex = this.filters.values.findIndex(
|
||||
f => f.raw === filter.text
|
||||
);
|
||||
if (storedIndex >= 0) {
|
||||
this.filters.values[storedIndex] = Object.assign(
|
||||
this.filters.values[storedIndex],
|
||||
{
|
||||
applied: true,
|
||||
isValid: filter.isValid,
|
||||
hits: filter.hits,
|
||||
name: filter.name,
|
||||
matcher: filter.matcher,
|
||||
value: filter.value
|
||||
}
|
||||
);
|
||||
} else {
|
||||
console.warn(
|
||||
`Got response with filter ${
|
||||
filter.text
|
||||
} which isn't one of applied filters, ignoring`
|
||||
);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
let updates = {};
|
||||
// update data dicts if they changed
|
||||
for (const key of [
|
||||
|
||||
Reference in New Issue
Block a user