Skip to content

Commit

Permalink
Fix severity filter
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderzobnin committed Mar 21, 2023
1 parent da4bc13 commit 3f7f0f4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/datasource/datasource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -679,10 +679,6 @@ export class ZabbixDatasource extends DataSourceApi<ZabbixMetricsQuery, ZabbixDS
problemsOptions.acknowledged = !!target.options?.acknowledged;
}

if (target.options?.minSeverity) {
let severities = [0, 1, 2, 3, 4, 5].filter((v) => v >= target.options?.minSeverity);
problemsOptions.severities = severities;
}
if (target.options?.severities?.length) {
let severities = [0, 1, 2, 3, 4, 5].filter((v) => target.options?.severities.includes(v));
problemsOptions.severities = severities;
Expand Down

0 comments on commit 3f7f0f4

Please sign in to comment.