Remove getState in new object

pull/841/head
Andrew Watkins 2017-02-06 12:50:31 -08:00
parent 954a6506fc
commit f1dd929725
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
import reducer from 'src/data_explorer/reducers/dataExplorerUI';
import {activatePanel} from 'src/data_explorer/actions/view';
describe('Chronograf.Reducers.Panel', () => {
describe('DataExploerer.Reducers.UI', () => {
it('can set the active panel', () => {
const activePanel = 123;
const actual = reducer({}, activatePanel(activePanel));

View File

@ -16,7 +16,7 @@ export default function persistState() {
const throttleMs = 1000;
store.subscribe(_.throttle(() => {
saveToLocalStorage({...store.getState()});
saveToLocalStorage(store.getState());
}, throttleMs));
return store;