Skip to content

Commit 62dd642

Browse files
Merge pull request #16247 from rhamilto/OCPBUGS-81654
OCPBUGS-81654: Filter out isActionCell prop to fix React warning
2 parents ec45b01 + 56e717f commit 62dd642

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

frontend/packages/console-app/src/components/data-view/useConsoleDataViewData.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,11 @@ export const useConsoleDataViewData = <
9090
const dataViewColumns = useMemo<ConsoleDataViewColumn<TData>[]>(
9191
() =>
9292
activeColumns.map(({ id, title, sort, props, resizableProps }, index) => {
93+
// Filter out custom Console props that aren't valid PatternFly ThProps
94+
const { isActionCell, ...validThProps } = props || {};
95+
9396
const headerProps: ThProps = {
94-
...props,
97+
...validThProps,
9598
dataLabel: title,
9699
};
97100

0 commit comments

Comments
 (0)