mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Merge pull request #13624 from grafana/filter-option-fix
Stackdriver: Prevent filter from crashing
This commit is contained in:
commit
09c9c2a57b
@ -87,7 +87,7 @@ export class FilterSegments {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// remove condition if it is first segment
|
// remove condition if it is first segment
|
||||||
if (index === 0 && this.filterSegments[0].type === 'condition') {
|
if (index === 0 && this.filterSegments.length > 0 && this.filterSegments[0].type === 'condition') {
|
||||||
this.filterSegments.splice(0, 1);
|
this.filterSegments.splice(0, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user