Add missing conditional
This commit is contained in:
parent
66f705ed9b
commit
94ec766bc6
1 changed files with 4 additions and 2 deletions
|
@ -175,8 +175,10 @@ const FaceCropImageView: React.FC<FaceCropImageViewProps> = ({
|
|||
);
|
||||
})*/
|
||||
.then((data) => {
|
||||
const blob = new Blob([data]);
|
||||
if (!didCancel) setObjectURL(URL.createObjectURL(blob));
|
||||
if (data) {
|
||||
const blob = new Blob([data]);
|
||||
if (!didCancel) setObjectURL(URL.createObjectURL(blob));
|
||||
}
|
||||
});
|
||||
} else setObjectURL(undefined);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue