diff --git a/src/store/actions.js b/src/store/actions.js index b696f8c..255bf0e 100644 --- a/src/store/actions.js +++ b/src/store/actions.js @@ -8,10 +8,10 @@ export default function getActions(pageDefinition) { const actions = {}; const filters = pageDefinition.filters(); for (const filterKey in filters) { - const filterAction = function (payload) { + const filterAction = async function (payload) { this[`${filterKey}Filter`] = payload; }; - const optionsAction = function (payload) { + const optionsAction = async function (payload) { this[`${filterKey}Options`] = payload; }; actions[`set${capitalize(filterKey)}Filter`] = filterAction; @@ -67,9 +67,6 @@ export default function getActions(pageDefinition) { .loadData(pageDefinition, pageStore) .then(function (response) { return response; - }) - .catch(function (error) { - throw Error(error); }); for (const chartKey in pageDefinition.charts()) { if (data[chartKey] === null) {