This commit is contained in:
Thomas Nordquist
2019-01-13 15:19:09 +01:00
parent 31b3077743
commit 1267bb27f7
2 changed files with 17 additions and 20 deletions

View File

@@ -1,6 +1,7 @@
import { Reducer, Action } from 'redux'
import * as q from '../../../backend/src/Model'
import { Action, Reducer } from 'redux'
export enum ActionTypes {
setAutoExpandLimit = 'SET_AUTO_EXPAND_LIMIT',
toggleSettingsVisibility = 'TOGGLE_SETTINGS_VISIBILITY',
@@ -47,7 +48,6 @@ const reducer: Reducer<AppState | undefined, CustomAction> = (state, action) =>
if (!state) {
throw Error('No initial state')
}
console.log(action)
switch (action.type) {
case ActionTypes.setAutoExpandLimit:
@@ -62,7 +62,6 @@ const reducer: Reducer<AppState | undefined, CustomAction> = (state, action) =>
},
}
case ActionTypes.setPublishTopic:
console.log(state)
return {
...state,
sidebar: { ...state.sidebar, publishTopic: action.publishTopic },