1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fix events list default sort column (#2149)

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen 2021-02-13 09:33:04 +02:00 committed by GitHub
parent ebf9177098
commit f4a3074926
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,7 +69,7 @@ export class Events extends React.Component<Props> {
tableProps={{
sortSyncWithUrl: false,
sortByDefault: {
sortBy: columnId.type,
sortBy: columnId.age,
orderBy: "desc", // show "Warning" events at the top
},
}}
@ -108,7 +108,7 @@ export class Events extends React.Component<Props> {
{ title: "Involved Object", className: "object", sortBy: columnId.object, id: columnId.object },
{ title: "Source", className: "source", id: columnId.source },
{ title: "Count", className: "count", sortBy: columnId.count, id: columnId.count },
{ title: "Age", className: "age", sortBy: columnId.age, id: columnId.age },
{ title: "Last Seen", className: "age", sortBy: columnId.age, id: columnId.age },
]}
renderTableContents={(event: KubeEvent) => {
const { involvedObject, type, message } = event;