Skip to content

Commit 60c1718

Browse files
fzaninottoJinParc
authored andcommitted
Fix user cannot to load saved queries when alwaysOn filters are empty
Closes marmelab#7784
1 parent d1e258d commit 60c1718

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/ra-ui-materialui/src/list/filter/FilterButton.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,11 @@ export const FilterButton = (props: FilterButtonProps): JSX.Element => {
109109
setRemoveSavedQueryDialogOpen(true);
110110
};
111111

112-
if (hiddenFilters.length === 0 && !hasFilterValues) {
112+
if (
113+
hiddenFilters.length === 0 &&
114+
validSavedQueries.length === 0 &&
115+
!hasFilterValues
116+
) {
113117
return null;
114118
}
115119
return (

0 commit comments

Comments
 (0)