@fluxhub/fluxhub-lib 19.0.246 → 19.0.247
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.
|
@@ -18220,7 +18220,17 @@ class FHUploadPanelComponent {
|
|
|
18220
18220
|
return;
|
|
18221
18221
|
if (o.response == null)
|
|
18222
18222
|
return;
|
|
18223
|
-
|
|
18223
|
+
// FHUpload passa il body di HttpClient, gia' deserializzato: il JSON.parse resta solo
|
|
18224
|
+
// per chi emette ancora la risposta come stringa.
|
|
18225
|
+
let obj_r = o.response;
|
|
18226
|
+
if (typeof obj_r === 'string') {
|
|
18227
|
+
try {
|
|
18228
|
+
obj_r = JSON.parse(obj_r);
|
|
18229
|
+
}
|
|
18230
|
+
catch {
|
|
18231
|
+
return;
|
|
18232
|
+
}
|
|
18233
|
+
}
|
|
18224
18234
|
if (obj_r != null)
|
|
18225
18235
|
if (obj_r.msg != null)
|
|
18226
18236
|
if (obj_r.msg != '') {
|