Properly order rows in log viewer
parent
b1c670df15
commit
1ef4e5b5a0
|
@ -39,11 +39,11 @@ const defaultTableData: TableData = {
|
|||
'time',
|
||||
'severity',
|
||||
'timestamp',
|
||||
'message',
|
||||
'facility',
|
||||
'procid',
|
||||
'appname',
|
||||
'host',
|
||||
'message',
|
||||
],
|
||||
values: [],
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -21,11 +21,11 @@ const defaultTableData: TableData = {
|
|||
'time',
|
||||
'severity',
|
||||
'timestamp',
|
||||
'message',
|
||||
'facility',
|
||||
'procid',
|
||||
'appname',
|
||||
'host',
|
||||
'message',
|
||||
],
|
||||
values: [],
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue