Skip to content
This repository has been archived by the owner on Aug 4, 2020. It is now read-only.

Commit

Permalink
Use proper constant as to not overwrite wrong data
Browse files Browse the repository at this point in the history
  • Loading branch information
fieldju committed Jun 6, 2017
1 parent 5f80515 commit 5373adc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/actions/appActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export function loadDashboardMetadata() {

export function storeDashboardMetadata(data) {
return {
type: constants.STORE_DOMAIN_DATA,
type: constants.STORE_DASHBOARD_METADATA,
payload: {
version: data.version
}
Expand Down
2 changes: 1 addition & 1 deletion app/reducers/appReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default createReducer(initialState, {
},

// stores the metadata about the dashboard into the state
[constants.STORE_DOMAIN_DATA]: (state, payload) => {
[constants.STORE_DASHBOARD_METADATA]: (state, payload) => {
return Object.assign({}, state, {
metadata: {
hasLoaded: true,
Expand Down

0 comments on commit 5373adc

Please sign in to comment.