Properly order rows in log viewer

pull/10616/head
Brandon Farmer 2018-07-13 16:12:13 -07:00
parent b1c670df15
commit 1ef4e5b5a0
3 changed files with 6 additions and 3 deletions

View File

@ -39,11 +39,11 @@ const defaultTableData: TableData = {
'time',
'severity',
'timestamp',
'message',
'facility',
'procid',
'appname',
'host',
'message',
],
values: [],
}

View File

@ -346,12 +346,15 @@ class LogsTable extends Component<Props, State> {
}
const data = getValuesFromData(this.props.tableInfiniteData.forward)
const backwardData = getValuesFromData(this.props.tableInfiniteData.forward)
const backwardData = getValuesFromData(
this.props.tableInfiniteData.backward
)
const firstTime = getDeep(
data,
'0.0',
getDeep(backwardData, '0.0', new Date().getTime())
)
const {firstQueryTime} = this.state
if (firstQueryTime && firstQueryTime > firstTime) {
return

View File

@ -21,11 +21,11 @@ const defaultTableData: TableData = {
'time',
'severity',
'timestamp',
'message',
'facility',
'procid',
'appname',
'host',
'message',
],
values: [],
}