fix: self node type shouldn't show in the picker (#4445)

This commit is contained in:
Pika 2024-05-16 05:25:09 +00:00 committed by GitHub
parent 3df47b7b59
commit 0f1172f55b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -84,7 +84,7 @@ const Item = ({
}}
trigger={renderTrigger}
popupClassName='!w-[328px]'
availableBlocksTypes={intersection(availablePrevNodes, availableNextNodes)}
availableBlocksTypes={intersection(availablePrevNodes, availableNextNodes).filter(item => item !== data.type)}
/>
)
}