Skip to content

Commit bbf1a19

Browse files
fix: add commandsManager to MoreDropdownMenu onClick props (#4765)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Alireza Sedghi <ar.sedghi@gmail.com>
1 parent 9a3d832 commit bbf1a19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extensions/default/src/Components/MoreDropdownMenu.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ const getMenuItemsDefault = ({
3333
id: string;
3434
label: string;
3535
iconName: string;
36-
onClick: ({ ...props }: withAppTypes) => () => void;
36+
onClick: ({ commandsManager, ...props }: withAppTypes) => () => void;
3737
};
3838
}) => (
39-
<DropdownMenuItem onClick={() => item.onClick({ ...props })}>
39+
<DropdownMenuItem onClick={() => item.onClick({ commandsManager, ...props })}>
4040
<div className="flex items-center gap-2">
4141
{item.iconName && <Icons.ByName name={item.iconName} />}
4242
<span>{item.label}</span>

0 commit comments

Comments
 (0)