sirius-common-utils 1.0.18 → 1.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -359,8 +359,8 @@ function downloadImageData(url, data, headers, options = {}) {
|
|
|
359
359
|
headers,
|
|
360
360
|
responseType: "blob"
|
|
361
361
|
});
|
|
362
|
-
let imageData = response.
|
|
363
|
-
if (imageData
|
|
362
|
+
let imageData = response.data;
|
|
363
|
+
if (imageData != null) {
|
|
364
364
|
if (response.data.errorCode && response.data.errorCode !== RESULT.SUCCESS) {
|
|
365
365
|
let errorResult = await handlerError(url, data, response);
|
|
366
366
|
resolve(null);
|
|
@@ -360,8 +360,8 @@
|
|
|
360
360
|
headers,
|
|
361
361
|
responseType: "blob"
|
|
362
362
|
});
|
|
363
|
-
let imageData = response.
|
|
364
|
-
if (imageData
|
|
363
|
+
let imageData = response.data;
|
|
364
|
+
if (imageData != null) {
|
|
365
365
|
if (response.data.errorCode && response.data.errorCode !== RESULT.SUCCESS) {
|
|
366
366
|
let errorResult = await handlerError(url, data, response);
|
|
367
367
|
resolve(null);
|