We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8153fcf commit ccacee7Copy full SHA for ccacee7
src/containers/Nodes/columns/constants.ts
@@ -51,11 +51,10 @@ export function getNodesGroupByOptions(withSystemStateGroupBy?: boolean): Select
51
}
52
53
export function parseNodesGroupByParam(
54
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
55
- param?: any,
+ paramToParse: unknown,
56
withSystemStateGroupBy?: boolean,
57
): NodesGroupByField | undefined {
58
const availableParams = getAvailableNodesGroupByParams(withSystemStateGroupBy);
59
60
- return availableParams.includes(param) ? param : undefined;
+ return availableParams.find((groupByField) => groupByField === paramToParse);
61
0 commit comments