[hotfix] dashboard doesn't have filter_immune_slices pre-save

This commit is contained in:
Maxime Beauchemin 2016-09-26 17:09:45 -07:00
parent 153667505f
commit b67906cfe1
1 changed files with 2 additions and 1 deletions

View File

@ -86,7 +86,8 @@ function dashboardContainer(dashboardData) {
// Summarized filter, not defined by sliceId
// returns k=field, v=array of values
const f = {};
if (sliceId && this.metadata.filter_immune_slices.includes(sliceId)) {
const immuneSlices = this.metadata.filter_immune_slices || [];
if (sliceId && immuneSlices.includes(sliceId)) {
// The slice is immune to dashboard fiterls
return f;
}