Fixed a deprecation

This commit is contained in:
Donkie
2025-03-18 20:44:28 +01:00
parent f041207db8
commit 3fc2f712e3

View File

@@ -111,11 +111,13 @@ function Column<Obj extends Entity>(
if (props.loadingFilters) {
columnProps.filterDropdown = <FilterDropdownLoading />;
}
columnProps.onFilterDropdownOpenChange = (open) => {
columnProps.filterDropdownProps = {
onOpenChange: (open) => {
if (open && props.onFilterDropdownOpen) {
props.onFilterDropdownOpen();
}
};
}
}
if (props.dataId) {
columnProps.key = props.dataId;
}