Skip to content
Snippets Groups Projects
Commit 6434dac0 authored by Nasha Hiramiya's avatar Nasha Hiramiya
Browse files

Add return for invalid filetypes, fixes wrong behaviour

parent 5deb1bf4
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ export default (os: OS) => {
text: '%i18n:common.got-it%'
}]
});
reject();
return reject('invalid-filetype');
}
const w = os.new(CropWindow, {
......
......@@ -16,7 +16,7 @@ export default (os: OS) => {
text: '%i18n:common.got-it%'
}]
});
reject();
return reject('invalid-filetype');
}
const w = os.new(CropWindow, {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment