diff --git a/js/notebook/src/tableDisplay/dataGrid/DataFormatter.ts b/js/notebook/src/tableDisplay/dataGrid/DataFormatter.ts index 23f7b578d0..26940a2c89 100644 --- a/js/notebook/src/tableDisplay/dataGrid/DataFormatter.ts +++ b/js/notebook/src/tableDisplay/dataGrid/DataFormatter.ts @@ -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) {