Remove getState in new object
parent
954a6506fc
commit
f1dd929725
|
@ -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));
|
||||
|
|
|
@ -16,7 +16,7 @@ export default function persistState() {
|
|||
const throttleMs = 1000;
|
||||
|
||||
store.subscribe(_.throttle(() => {
|
||||
saveToLocalStorage({...store.getState()});
|
||||
saveToLocalStorage(store.getState());
|
||||
}, throttleMs));
|
||||
|
||||
return store;
|
||||
|
|
Loading…
Reference in New Issue