mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
fix: onClick color menu item error
This commit is contained in:
@@ -43,7 +43,10 @@ function Menu(props) {
|
||||
if (props.closeMenu) {
|
||||
props.closeMenu();
|
||||
}
|
||||
item.onClick(props.data);
|
||||
console.log("ITEM", item);
|
||||
if (!item.component) {
|
||||
item.onClick(props.data);
|
||||
}
|
||||
}}
|
||||
flexDirection="row"
|
||||
alignItems="center"
|
||||
|
||||
Reference in New Issue
Block a user