mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Update CRDResources for new behaviour of helper function
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
4cf4ab4b1b
commit
a052e40bda
@ -11,7 +11,7 @@ import { KubeObjectListLayout } from "../kube-object-list-layout";
|
||||
import type { IComputedValue } from "mobx";
|
||||
import { computed, makeObservable } from "mobx";
|
||||
import type { ApiManager } from "../../../common/k8s-api/api-manager";
|
||||
import { safeJSONPathValue } from "../../utils/jsonPath";
|
||||
import { formatJSONValue, safeJSONPathValue } from "../../utils/jsonPath";
|
||||
import { TabLayout } from "../layout/tab-layout-2";
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import customResourcesRouteParametersInjectable from "./custom-resources-route-parameters.injectable";
|
||||
@ -73,7 +73,7 @@ class NonInjectedCustomResources extends React.Component<Dependencies> {
|
||||
[columnId.age]: customResource => -customResource.getCreationTimestamp(),
|
||||
...Object.fromEntries(extraColumns.map(({ name, jsonPath }) => [
|
||||
name,
|
||||
customResource => safeJSONPathValue(customResource, jsonPath),
|
||||
customResource => formatJSONValue(safeJSONPathValue(customResource, jsonPath)),
|
||||
])),
|
||||
}}
|
||||
searchFilters={[
|
||||
|
||||
Loading…
Reference in New Issue
Block a user