Skip to content

Commit ccacee7

Browse files
fix: review
1 parent 8153fcf commit ccacee7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/containers/Nodes/columns/constants.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,10 @@ export function getNodesGroupByOptions(withSystemStateGroupBy?: boolean): Select
5151
}
5252

5353
export function parseNodesGroupByParam(
54-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
55-
param?: any,
54+
paramToParse: unknown,
5655
withSystemStateGroupBy?: boolean,
5756
): NodesGroupByField | undefined {
5857
const availableParams = getAvailableNodesGroupByParams(withSystemStateGroupBy);
5958

60-
return availableParams.includes(param) ? param : undefined;
59+
return availableParams.find((groupByField) => groupByField === paramToParse);
6160
}

0 commit comments

Comments
 (0)