Skip to content

Commit a4cfa46

Browse files
Fix the couple of errors
1 parent 621e261 commit a4cfa46

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

client/constants.js

+3
Original file line numberDiff line numberDiff line change
@@ -139,3 +139,6 @@ export const START_SAVING_PROJECT = 'START_SAVING_PROJECT';
139139
export const END_SAVING_PROJECT = 'END_SAVING_PROJECT';
140140

141141
export const SET_COOKIE_CONSENT = 'SET_COOKIE_CONSENT';
142+
143+
export const CONSOLE_EVENT = 'CONSOLE_EVENT';
144+
export const CLEAR_CONSOLE = 'CLEAR_CONSOLE';

client/modules/IDE/actions/console.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
import { consoleActions } from '../reducers/console';
2-
3-
export const { dispatchConsoleEvent, clearConsole } = consoleActions;
1+
export { dispatchConsoleEvent, clearConsole } from '../reducers/console';

client/modules/IDE/reducers/console.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@ const consoleSlice = createSlice({
88
initialState,
99
reducers: {
1010
dispatchConsoleEvent: (state, action) => {
11-
const messages = [...action.event];
11+
const messages = [...action.payload];
1212
return state.concat(messages).slice(-consoleMax);
1313
},
14-
clearConsole: (state, action) => []
14+
clearConsole: () => []
1515
}
1616
});
1717

18-
export const consoleActions = consoleSlice.actions;
19-
18+
export const { dispatchConsoleEvent, clearConsole } = consoleSlice.actions;
2019
export default consoleSlice.reducer;

client/store.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default function setupStore(initialState) {
2424
middleware: (getDefaultMiddleware) =>
2525
getDefaultMiddleware({
2626
thunk: true,
27-
serializableCheck: true,
27+
serializableCheck: false,
2828
// TODO: enable immutableCheck once the mutations are fixed.
2929
immutableCheck: false
3030
}).concat(listenerMiddleware.middleware),

0 commit comments

Comments
 (0)