SUPPORT-9345: return bad request for wrong extract formats
This commit is contained in:
parent
b477348fac
commit
dd13078cbb
2 changed files with 12 additions and 0 deletions
|
|
@ -38,6 +38,11 @@ export class ExtractLoadService extends Behavior {
|
|||
observe: 'response'
|
||||
}).toPromise()
|
||||
.then((response) => {
|
||||
if (!response.ok) {
|
||||
this.errorEvent.trigger();
|
||||
return;
|
||||
}
|
||||
|
||||
const data = window.URL.createObjectURL(response.body);
|
||||
const link = document.createElement("a");
|
||||
link.href = data;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue