Skip to content

Commit

Permalink
[hotfix] dashboard doesn't have filter_immune_slices pre-save
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Sep 27, 2016
1 parent 1536675 commit b67906c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion caravel/assets/javascripts/dashboard/Dashboard.jsx
Expand Up @@ -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;
}
Expand Down

0 comments on commit b67906c

Please sign in to comment.