Setting initial categories upon load; need to modify for timeline and related events

This commit is contained in:
efarooqui
2020-10-12 11:15:34 -07:00
parent 909307a6ae
commit b35fb48860
3 changed files with 29 additions and 1 deletions

View File

@@ -107,6 +107,7 @@ export function fetchDomain () {
throw new Error('Some URLs returned negative. If you are in development, check the server is running')
}
dispatch(toggleFetchingDomain())
dispatch(setInitialCategories(result.associations))
return result
})
.catch(err => {
@@ -212,6 +213,14 @@ export function setNotLoading () {
}
}
export const SET_INITIAL_CATEGORIES = 'SET_INITIAL_CATEGORIES'
export function setInitialCategories (values) {
return {
type: SET_INITIAL_CATEGORIES,
values
}
}
export const UPDATE_TIMERANGE = 'UPDATE_TIMERANGE'
export function updateTimeRange (timerange) {
return {