Skip to content

Commit 5820a1b

Browse files
committed
Fix node type select
1 parent bc18195 commit 5820a1b

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.changeset/small-birds-raise.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@compai/css-gui': patch
3+
---
4+
5+
Fix node type select

packages/gui/src/components/html/Editors/NodeEditor.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ export function NodeEditor({
3636
let nodeType = value.type === 'text' ? 'text' : 'tag'
3737
if (value.type === 'component') {
3838
nodeType = 'component'
39+
} else if (value.type === 'slot') {
40+
nodeType = 'slot'
3941
}
4042

4143
const baseNodeTypes = ['text', 'tag']

0 commit comments

Comments
 (0)