Skip to content

Commit b34dc56

Browse files
committed
Address review comments
1 parent f61b13e commit b34dc56

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

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

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export const ConsoleDataView = <
9292
columns,
9393
columnLayout,
9494
columnManagementID,
95-
initialFilters,
95+
initialFilters = initialFiltersDefault as TFilters,
9696
additionalFilterNodes,
9797
getObjectMetadata,
9898
matchesAdditionalFilters,
@@ -106,17 +106,12 @@ export const ConsoleDataView = <
106106
}: ConsoleDataViewProps<TData, TCustomRowData, TFilters>) => {
107107
const { t } = useTranslation();
108108

109-
const initialFiltersOrDefault = React.useMemo(
110-
() => initialFilters ?? (initialFiltersDefault as TFilters),
111-
[initialFilters],
112-
);
113-
114109
const { filters, onSetFilters, clearAllFilters, filteredData } = useConsoleDataViewFilters<
115110
TData,
116111
TFilters
117112
>({
118113
data,
119-
initialFilters: initialFiltersOrDefault,
114+
initialFilters,
120115
getObjectMetadata,
121116
matchesAdditionalFilters,
122117
});

0 commit comments

Comments
 (0)