Fix events list default sort column (#2149)

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen authored and GitHub committed 2021-02-13 09:33:04 +02:00
1 parent ebf9177098
commit f4a3074926
1 file changed
+2 -2
+2 -2
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;