mirror of
https://github.com/langgenius/dify.git
synced 2026-02-22 19:15:47 +08:00
fix(skill): pass root nodeId for blank-area context menu
The previous refactor inadvertently passed undefined nodeId for blank area menus, causing root-level folder creation/upload to fail. This restores the original behavior by explicitly passing 'root' when the context menu type is 'blank'.
This commit is contained in:
@ -46,7 +46,7 @@ const TreeContextMenu: FC<TreeContextMenuProps> = ({ treeRef }) => {
|
||||
>
|
||||
<NodeMenu
|
||||
type={getMenuType(contextMenu)}
|
||||
nodeId={contextMenu.nodeId}
|
||||
nodeId={contextMenu.type === 'blank' ? 'root' : contextMenu.nodeId}
|
||||
onClose={handleClose}
|
||||
treeRef={treeRef}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user