Added a fix for nested JSON data type returned from data preview
@@ -87,9 +87,12 @@ export class DataPreviewButton extends React.Component<DataPreviewButtonProps, D
getSanitizedValue(value) {
// Display the string interpretation of the following "false-y" values
- if (value === 0 || typeof(value) === "boolean") {
+ if (value === 0 || typeof value === "boolean") {
return value.toString();
}
+ if (typeof value === "object") {
+ return JSON.stringify(value);
+ }
return value || '';
}
