From 23693f3764f9f04577b43d92161b126a4913e2cf Mon Sep 17 00:00:00 2001 From: DD Date: Tue, 5 Sep 2017 18:00:41 -0400 Subject: [PATCH] get rid of null check, since onUpdateSvg is required --- src/containers/paint-editor.jsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/containers/paint-editor.jsx b/src/containers/paint-editor.jsx index eefca91d..ba260313 100644 --- a/src/containers/paint-editor.jsx +++ b/src/containers/paint-editor.jsx @@ -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({