Skip to content
This repository was archived by the owner on Aug 21, 2024. It is now read-only.

Commit a2beca1

Browse files
committed
Fix dragging component from panel
1 parent cdfd18e commit a2beca1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/editor/src/components/element/ElementList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ export function ElementList() {
235235
<SceneElementListItem
236236
key={item.jsonID}
237237
item={{
238-
componentJsonID: item.name!,
238+
componentJsonID: item.jsonID!,
239239
label: startCase((item.jsonID || item.name).replace('-', ' ').toLowerCase()),
240240
Icon: EntityNodeEditor.get(item)?.iconComponent || PlaceHolderIcon,
241241
type: ItemTypes.Component

0 commit comments

Comments
 (0)