Skip to content

Commit 7811c6e

Browse files
committed
fix(tag-dropdown): bug on undefined
1 parent 4cd9011 commit 7811c6e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sim/components/ui/tag-dropdown.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,8 @@ export const TagDropdown: React.FC<TagDropdownProps> = ({
531531
// Get block type from blocks
532532
const blockType = Object.values(blocks).find(
533533
(block) =>
534-
(block.name || block.type).replace(/\s+/g, '').toLowerCase() === blockName
534+
(block.name || block.type || '').replace(/\s+/g, '').toLowerCase() ===
535+
blockName
535536
)?.type
536537

537538
// Get block color from block config

0 commit comments

Comments
 (0)