Skip to content

Commit

Permalink
feat(Data Explorer - Table View): For cell whose contents represent a…
Browse files Browse the repository at this point in the history
…n "object", replace the placeholder "{Object...}" string with a JSON.stringify() of the cell contents
  • Loading branch information
grailian committed Aug 16, 2017
1 parent b172330 commit dfaf34e
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,7 @@ const ExplorerTableCell = ({
return <RIEInput value={''} change={dataChangedString} propName={fieldName} shouldBlockWhileLoading={true}
classLoading="loading-cell" classEditing="form-control" className="empty-cell"/>;
} else {
if (data) {
if (Object.keys(data).length) {
return '{Object ...}';
} else {
return JSON.stringify(data);
}
} else {
return JSON.stringify(data);
}
return JSON.stringify(data);
}
};

Expand Down

0 comments on commit dfaf34e

Please sign in to comment.