@fluxhub/fluxhub-lib 22.0.6 → 22.0.7
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.
|
@@ -19693,7 +19693,17 @@ class FHUploadPanelComponent {
|
|
|
19693
19693
|
return;
|
|
19694
19694
|
if (o.response == null)
|
|
19695
19695
|
return;
|
|
19696
|
-
|
|
19696
|
+
// FHUpload passa il body di HttpClient, gia' deserializzato: il JSON.parse resta solo
|
|
19697
|
+
// per chi emette ancora la risposta come stringa.
|
|
19698
|
+
let obj_r = o.response;
|
|
19699
|
+
if (typeof obj_r === 'string') {
|
|
19700
|
+
try {
|
|
19701
|
+
obj_r = JSON.parse(obj_r);
|
|
19702
|
+
}
|
|
19703
|
+
catch {
|
|
19704
|
+
return;
|
|
19705
|
+
}
|
|
19706
|
+
}
|
|
19697
19707
|
if (obj_r != null)
|
|
19698
19708
|
if (obj_r.msg != null)
|
|
19699
19709
|
if (obj_r.msg != '') {
|