Skip to content
Snippets Groups Projects
Commit dcbc1d99 authored by Tom Robinson's avatar Tom Robinson Committed by GitHub
Browse files

Merge pull request #3478 from metabase/fix-faded-dashcards

Fix faded dashcards when switching dashboards
parents 88aa9ddc 69445218
No related branches found
No related tags found
No related merge requests found
......@@ -495,6 +495,7 @@ const cardDurations = handleActions({
}, {});
const parameterValues = handleActions({
[INITIALIZE]: { next: () => ({}) }, // reset values
[SET_PARAMETER_VALUE]: { next: (state, { payload: { id, value }}) => i.assoc(state, id, value) },
[REMOVE_PARAMETER]: { next: (state, { payload: { id }}) => i.dissoc(state, id) }
}, {});
......
......@@ -83,6 +83,10 @@ export const getParameterTarget = createSelector(
export const getMappingsByParameter = createSelector(
[getMetadata, getDashboardComplete],
(metadata, dashboard) => {
if (!dashboard) {
return {};
}
let mappingsByParameter = {};
let countsByParameter = {};
let mappings = [];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment