get rid of null check, since onUpdateSvg is required

This commit is contained in:
DD 2017-09-05 18:00:41 -04:00
parent 36016bbd11
commit 23693f3764

View file

@ -21,9 +21,6 @@ class PaintEditor extends React.Component {
document.removeEventListener('keydown', this.props.onKeyPress);
}
handleUpdateSvg () {
if (!this.props.onUpdateSvg) {
return;
}
const bounds = paper.project.activeLayer.bounds;
this.props.onUpdateSvg(
paper.project.exportSVG({