friendly printed arrays for json responses (#7805)

This commit is contained in:
Clint Wylie 2019-05-31 02:34:12 -07:00 committed by Benedict Jin
parent 7abfbb066a
commit 94b3591171
1 changed files with 2 additions and 0 deletions

View File

@ -35,6 +35,8 @@ export class NullTableCell extends React.Component<NullTableCellProps, {}> {
} else if (value !== '' && value != null) {
if (timestamp) {
return <span className="null-table-cell timestamp" title={value}>{new Date(value).toISOString()}</span>;
} else if (Array.isArray(value)) {
return `[${value.join(', ')}]`;
} else {
return value;
}