LogsTable: Fix default sort by time (#88398)

This commit is contained in:
Sven Grossmann 2024-05-29 16:46:26 +02:00 committed by GitHub
parent 144e476840
commit f81e8e04aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -174,6 +174,9 @@ export function LogsTable(props: Props) {
onCellFilterAdded={props.onClickFilterLabel && props.onClickFilterOutLabel ? onCellFilterAdded : undefined}
height={props.height}
footerOptions={{ show: true, reducer: ['count'], countRows: true }}
initialSortBy={[
{ displayName: logsFrame?.timeField.name || '', desc: logsSortOrder === LogsSortOrder.Descending },
]}
/>
);
}