Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/utils/components/Area/utils/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,4 @@ export interface CallbackArgs {
}

export type ValueOrAccessor<ValueType, PropsType = CallbackArgs> =
| ((props: PropsType) => ValueType)
| ValueType;
((props: PropsType) => ValueType) | ValueType;
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,12 @@ const NetworkPolicyPodsPreview: FC<NetworkPolicyPodsPreviewProps> = ({
});
// Then convert the above groups of pod TreeViewDataItems to subchildren of
// the namespaces' TreeViewDataItems
const podTreeEntries = Object.entries(podsByNs).map(
([ns, podsTree]): TreeViewDataItem => ({
children: podsTree,
defaultExpanded: true,
icon: <ResourceIcon kind={NamespaceModel.kind} />,
name: ns,
}),
);
const podTreeEntries = Object.entries(podsByNs).map(([ns, podsTree]): TreeViewDataItem => ({
children: podsTree,
defaultExpanded: true,
icon: <ResourceIcon kind={NamespaceModel.kind} />,
name: ns,
}));
return {
pods: podTreeEntries,
total: filteredPods.length,
Expand Down