Skip to content

Commit

Permalink
#1821: ported to 2.4.x: fix metrics with missing availableTags-proper…
Browse files Browse the repository at this point in the history
…ty (#1842)
  • Loading branch information
erikpetzold committed Oct 1, 2021
1 parent 8c80d9c commit 39c7ca1
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -193,7 +193,9 @@
this.availableTags = response.data.availableTags;
this.stateFetchingTags = 'completed';
this.selectedTags = {};
this.availableTags.forEach(t => this.selectedTags[t.tag] = undefined);
if (this.availableTags) {
this.availableTags.forEach(t => this.selectedTags[t.tag] = undefined);
}
} catch (error) {
console.warn('Fetching metric tags failed:', error);
this.stateFetchingTags = 'failed';
Expand Down

0 comments on commit 39c7ca1

Please sign in to comment.