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

Fix faded dashcards when switching dashboards

parent 159419ce
No related branches found
No related tags found
No related merge requests found
......@@ -476,6 +476,7 @@ const cardDurations = handleActions({
}, {});
const parameterValues = handleActions({
[INITIALIZE]: { next: () => ({}) },
[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