@fluxhub/fluxhub-lib 21.0.2 → 21.0.3

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.
@@ -17227,7 +17227,17 @@ class FHUploadPanelComponent {
17227
17227
  return;
17228
17228
  if (o.response == null)
17229
17229
  return;
17230
- let obj_r = JSON.parse(o.response);
17230
+ // FHUpload passa il body di HttpClient, gia' deserializzato: il JSON.parse resta solo
17231
+ // per chi emette ancora la risposta come stringa.
17232
+ let obj_r = o.response;
17233
+ if (typeof obj_r === 'string') {
17234
+ try {
17235
+ obj_r = JSON.parse(obj_r);
17236
+ }
17237
+ catch {
17238
+ return;
17239
+ }
17240
+ }
17231
17241
  if (obj_r != null)
17232
17242
  if (obj_r.msg != null)
17233
17243
  if (obj_r.msg != '') {