Fix view edit button (#1381)

- fix view edit button as described
This commit is contained in:
brendanlaschke 2023-08-30 15:08:27 +02:00 committed by GitHub
parent e4dd2b0633
commit 85155a634f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -127,9 +127,10 @@ export const TableViewsDropdownButton = ({
(event: MouseEvent<HTMLButtonElement>, viewId: string) => { (event: MouseEvent<HTMLButtonElement>, viewId: string) => {
event.stopPropagation(); event.stopPropagation();
setViewEditMode({ mode: 'edit', viewId }); setViewEditMode({ mode: 'edit', viewId });
openOptionsDropdownButton();
setIsUnfolded(false); setIsUnfolded(false);
}, },
[setViewEditMode], [setViewEditMode, openOptionsDropdownButton],
); );
const handleDeleteViewButtonClick = useCallback( const handleDeleteViewButtonClick = useCallback(