Skip to content

Commit

Permalink
#7404 limit rendering stringified objects to 1000 chars (#7586)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariusz Jurowicz authored and scottdraves committed Jun 27, 2018
1 parent b267a9f commit 31d2aab
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions js/notebook/src/tableDisplay/dataGrid/DataFormatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,9 @@ export class DataFormatter {
formattedValue = config.value.type === 'Date' ?
moment(config.value.timestamp).format(DEFAULT_TIME_FORMAT) :
JSON.stringify(config.value);
} else if (_.isString(config.value)) {
const limitedText = DataGridHelpers.truncateString(config.value);

formattedValue = limitedText;
}

return formattedValue;
return DataGridHelpers.truncateString(formattedValue);
}

private integer(config: CellRenderer.ICellConfig) {
Expand Down

0 comments on commit 31d2aab

Please sign in to comment.