Remove Flow suppression

This commit is contained in:
Tom Moor
2017-12-17 14:14:49 -08:00
parent 62c014a8e9
commit 8f3c82fe57

View File

@@ -25,7 +25,7 @@ class DropToImport extends Component {
@observable zoom: number = 1;
props: Props;
file: File;
avatarEditorRef: HTMLCanvasElement;
avatarEditorRef: AvatarEditor;
onDropAccepted = async (files: File[]) => {
this.isCropping = true;
@@ -33,7 +33,6 @@ class DropToImport extends Component {
};
handleCrop = async () => {
// $FlowIssue getImage() exists
const canvas = this.avatarEditorRef.getImage();
const imageBlob = dataUrlToBlob(canvas.toDataURL());
try {