Fixing the checking filters for incidents from the store (#1311)
# What this PR does Fix the bug related with clearing the filters when coming back from Incident page ## Which issue(s) this PR fixes https://github.com/grafana/oncall/issues/482 ## Checklist - [ ] Tests updated - [ ] Documentation added - [ ] `CHANGELOG.md` updated
This commit is contained in:
parent
78e1cbabab
commit
dd3e21b3a3
1 changed files with 2 additions and 2 deletions
|
|
@ -66,8 +66,8 @@ class IncidentsFilters extends Component<IncidentsFiltersProps, IncidentsFilters
|
|||
if (isEmpty(values)) {
|
||||
// TODO fill filters if no filters in query
|
||||
let newQuery;
|
||||
if (store.incidentFilters) {
|
||||
newQuery = { ...store.incidentFilters };
|
||||
if (store.alertGroupStore.incidentFilters) {
|
||||
newQuery = { ...store.alertGroupStore.incidentFilters };
|
||||
} else {
|
||||
newQuery = {
|
||||
status: [IncidentStatus.Firing, IncidentStatus.Acknowledged],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue