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:
parent
ebf9177098
commit
f4a3074926
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user