[Refactoring] [Attempt to fix crash]

This commit is contained in:
Scott E. Graves
2019-06-15 20:20:37 -05:00
parent 81303d68dd
commit 6941f8370a
8 changed files with 39 additions and 15 deletions

View File

@@ -1,8 +1,8 @@
import axios from 'axios';
import * as Constants from '../../constants';
import {createAction} from 'redux-starter-kit';
import {setApplicationReady} from './common_actions';
import {notifyError} from './error_actions';
import {setApplicationReady} from './common_actions';
export const CLEAR_UI_UPGRADE = 'relver/clearUIUpgrade';
export const clearUIUpgrade = () => {
@@ -75,7 +75,7 @@ export const loadReleases = () => {
}));
dispatchActions(locationsLookup, versionLookup);
}).catch(error => {
const releases = window.localStorage.getItem('releases');
const releases = localStorage.getItem('releases');
if (releases && (releases.length > 0)) {
const obj = JSON.parse(releases);
const locationsLookup = obj.LocationsLookup;