@superinterface/react 2.24.4 → 2.24.5

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.
package/dist/index.cjs CHANGED
@@ -1030,7 +1030,11 @@ var formattedJsonOrRaw = function(param) {
1030
1030
  try {
1031
1031
  return JSON.stringify(JSON.parse(value), null, 2);
1032
1032
  } catch (error) {
1033
- return value;
1033
+ if (typeof value === "string") {
1034
+ return value;
1035
+ } else {
1036
+ return JSON.stringify(value, null, 2);
1037
+ }
1034
1038
  }
1035
1039
  };
1036
1040
  // src/components/functions/FunctionBase/Content/index.tsx