Skip to content

Commit

Permalink
fix(component):fix menu error
Browse files Browse the repository at this point in the history
  • Loading branch information
pomelo-nwu committed Jan 7, 2021
1 parent b6ab97d commit c3d341b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/graphin-components/src/ContextMenu/Menu.tsx
Expand Up @@ -34,7 +34,7 @@ export interface Item {
[key: string]: any;
}
const Item = (props) => {
const { children, onClick } = props;
const { children, onClick = () => {} } = props;
const graphin = React.useContext(GraphinContext);
const handleClose = () => {
onClick();
Expand Down

0 comments on commit c3d341b

Please sign in to comment.