mirror of
https://github.com/langgenius/dify.git
synced 2026-05-13 08:57:28 +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:
parent
9aed4f830f
commit
0d5e971a0c
@ -46,7 +46,7 @@ const TreeContextMenu: FC<TreeContextMenuProps> = ({ treeRef }) => {
|
|||||||
>
|
>
|
||||||
<NodeMenu
|
<NodeMenu
|
||||||
type={getMenuType(contextMenu)}
|
type={getMenuType(contextMenu)}
|
||||||
nodeId={contextMenu.nodeId}
|
nodeId={contextMenu.type === 'blank' ? 'root' : contextMenu.nodeId}
|
||||||
onClose={handleClose}
|
onClose={handleClose}
|
||||||
treeRef={treeRef}
|
treeRef={treeRef}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user