Skip to content

Commit b3d7a70

Browse files
committed
PreviewFrames mapDispatchToProps as plain Object
1 parent 793a76d commit b3d7a70

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

client/modules/IDE/components/PreviewFrame.jsx

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -377,20 +377,17 @@ const mapStateToProps = state => ({
377377
});
378378

379379

380-
const mapDispatchToProps = dispatch => bindActionCreators(
381-
Object.assign(
382-
{},
383-
stopSketch,
384-
expandConsole,
385-
endSketchRefresh,
386-
setTextOutput,
387-
setGridOutput,
388-
setSoundOutput,
389-
setBlobUrl,
390-
clearConsole,
391-
dispatchConsoleEvent,
392-
),
393-
dispatch
394-
);
380+
const mapDispatchToProps = {
381+
stopSketch,
382+
expandConsole,
383+
endSketchRefresh,
384+
setTextOutput,
385+
setGridOutput,
386+
setSoundOutput,
387+
setBlobUrl,
388+
clearConsole,
389+
dispatchConsoleEvent
390+
};
391+
395392

396393
export default (connect(mapStateToProps, mapDispatchToProps)(PreviewFrame));

0 commit comments

Comments
 (0)