Skip to content

Commit

Permalink
optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouwenxuan authored and zhouwenxuan committed Dec 11, 2024
1 parent 3d2d5db commit 9e5bdce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/metadata/views/kanban/context-menu/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const ContextMenu = ({ isDir, getContainerRect, onOpenInNewTab, onOpenParentFold
}
}
setVisible(false);
}, [onDownload, onDelete, onRename]);
}, [onOpenInNewTab, onOpenParentFolder, onDownload, onDelete, onRename]);

const getMenuPosition = useCallback((x = 0, y = 0) => {
let menuStyles = {
Expand Down Expand Up @@ -149,7 +149,7 @@ const ContextMenu = ({ isDir, getContainerRect, onOpenInNewTab, onOpenParentFold
};

ContextMenu.propTypes = {
isDir: PropTypes.bool.isRequired,
isDir: PropTypes.bool,
getContainerRect: PropTypes.func.isRequired,
onOpenInNewTab: PropTypes.func.isRequired,
onOpenParentFolder: PropTypes.func.isRequired,
Expand Down

0 comments on commit 9e5bdce

Please sign in to comment.