SUPPORT-9345: return bad request for wrong extract formats

This commit is contained in:
gulnaz 2025-08-21 10:47:11 +03:00
parent b477348fac
commit dd13078cbb
2 changed files with 12 additions and 0 deletions

View file

@ -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;