mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2024-12-22 21:42:30 -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);
|
document.removeEventListener('keydown', this.props.onKeyPress);
|
||||||
}
|
}
|
||||||
handleUpdateSvg () {
|
handleUpdateSvg () {
|
||||||
if (!this.props.onUpdateSvg) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
const bounds = paper.project.activeLayer.bounds;
|
const bounds = paper.project.activeLayer.bounds;
|
||||||
this.props.onUpdateSvg(
|
this.props.onUpdateSvg(
|
||||||
paper.project.exportSVG({
|
paper.project.exportSVG({
|
||||||
|
|
Loading…
Reference in a new issue