Fix list sort by age (#276)

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen authored and GitHub committed 2020-04-19 17:49:14 +03:00
1 parent 07e2653f80
commit 6bdd247a85
26 files changed
+44 -44

No files matched your search

@@ -34,7 +34,7 @@ export class Roles extends React.Component<Props> {
sortingCallbacks={{
[sortBy.name]: (role: Role) => role.getName(),
[sortBy.namespace]: (role: Role) => role.getNs(),
[sortBy.age]: (role: Role) => role.getAge(false),
[sortBy.age]: (role: Role) => role.metadata.creationTimestamp,
}}
searchFilters={[
(role: Role) => role.getSearchFields(),