mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-06-04 11:14:10 +08:00
fix: self node type shouldn't show in the picker (#4445)
This commit is contained in:
parent
3df47b7b59
commit
0f1172f55b
@ -44,7 +44,7 @@ const Item = ({
|
|||||||
return (
|
return (
|
||||||
<Button
|
<Button
|
||||||
className={`
|
className={`
|
||||||
hidden group-hover:flex px-2 py-0 h-6 bg-white text-xs text-gray-700 font-medium rounded-md
|
hidden group-hover:flex px-2 py-0 h-6 bg-white text-xs text-gray-700 font-medium rounded-md
|
||||||
${open && '!bg-gray-100 !flex'}
|
${open && '!bg-gray-100 !flex'}
|
||||||
`}
|
`}
|
||||||
>
|
>
|
||||||
@ -84,7 +84,7 @@ const Item = ({
|
|||||||
}}
|
}}
|
||||||
trigger={renderTrigger}
|
trigger={renderTrigger}
|
||||||
popupClassName='!w-[328px]'
|
popupClassName='!w-[328px]'
|
||||||
availableBlocksTypes={intersection(availablePrevNodes, availableNextNodes)}
|
availableBlocksTypes={intersection(availablePrevNodes, availableNextNodes).filter(item => item !== data.type)}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user