mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2024-12-22 13:32:28 -05:00
get rid of null check, since onUpdateSvg is required
This commit is contained in:
parent
36016bbd11
commit
23693f3764
1 changed files with 0 additions and 3 deletions
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue