Skip to content

Commit

Permalink
fix: self node type shouldn't show in the picker (langgenius#4445)
Browse files Browse the repository at this point in the history
  • Loading branch information
HiChen404 authored May 16, 2024
1 parent 3df47b7 commit 0f1172f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const Item = ({
return (
<Button
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'}
`}
>
Expand Down Expand Up @@ -84,7 +84,7 @@ const Item = ({
}}
trigger={renderTrigger}
popupClassName='!w-[328px]'
availableBlocksTypes={intersection(availablePrevNodes, availableNextNodes)}
availableBlocksTypes={intersection(availablePrevNodes, availableNextNodes).filter(item => item !== data.type)}
/>
)
}
Expand Down

0 comments on commit 0f1172f

Please sign in to comment.