Skip to content

Commit

Permalink
Wrap scratch-paint with error boundary (#777)
Browse files Browse the repository at this point in the history
  • Loading branch information
GarboMuffin authored Aug 1, 2023
1 parent 5f18d47 commit ee03645
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/containers/paint-editor-wrapper.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import bindAll from 'lodash.bindall';
import VM from 'scratch-vm';
import PaintEditor from '../lib/tw-scratch-paint';
import {inlineSvgFonts} from 'scratch-svg-renderer';
import ErrorBoundaryHOC from '../lib/error-boundary-hoc.jsx';

import {connect} from 'react-redux';

Expand Down Expand Up @@ -101,6 +102,6 @@ const mapStateToProps = (state, {selectedCostumeIndex}) => {
};
};

export default connect(
export default ErrorBoundaryHOC('paint')(connect(
mapStateToProps
)(PaintEditorWrapper);
)(PaintEditorWrapper));

0 comments on commit ee03645

Please sign in to comment.