diff --git a/front/src/modules/ui/view-bar/components/UpdateViewButtonGroup.tsx b/front/src/modules/ui/view-bar/components/UpdateViewButtonGroup.tsx index 64546ab5cb..878a461fe8 100644 --- a/front/src/modules/ui/view-bar/components/UpdateViewButtonGroup.tsx +++ b/front/src/modules/ui/view-bar/components/UpdateViewButtonGroup.tsx @@ -67,6 +67,10 @@ export const UpdateViewButtonGroup = ({ const setViewEditMode = useSetRecoilState(viewEditModeState); + const canPersistView = + currentViewId && + (canPersistViewFields || canPersistFilters || canPersistSorts); + const handleArrowDownButtonClick = useCallback(() => { setIsDropdownOpen((previousIsOpen) => !previousIsOpen); }, []); @@ -95,17 +99,12 @@ export const UpdateViewButtonGroup = ({ [], ); + if (!canPersistView) return null; + return ( -