@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 +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -875,7 +875,11 @@ var formattedJsonOrRaw = function(param) {
|
|
|
875
875
|
try {
|
|
876
876
|
return JSON.stringify(JSON.parse(value), null, 2);
|
|
877
877
|
} catch (error) {
|
|
878
|
-
|
|
878
|
+
if (typeof value === "string") {
|
|
879
|
+
return value;
|
|
880
|
+
} else {
|
|
881
|
+
return JSON.stringify(value, null, 2);
|
|
882
|
+
}
|
|
879
883
|
}
|
|
880
884
|
};
|
|
881
885
|
// src/components/functions/FunctionBase/Content/index.tsx
|