fix: revert addition of as prop

This commit is contained in:
Abbey Yacoe
2025-05-22 16:31:50 +02:00
parent 1fb7a5c98a
commit b310586dfb
5 changed files with 29 additions and 48 deletions

View File

@@ -13,10 +13,10 @@
{
id: 'A',
position: { x: 0, y: 0 },
data: { label: 'A' },
data: { label: 'A' },
},
// You need to explicitly pass the as type
{ id: 'B', position: { x: -100, y: 150 }, data: { label: '<ul> Node' }, as: "ul" as "ul" },
{ id: 'B', position: { x: -100, y: 150 }, data: { label: 'B' } },
{ id: 'C', position: { x: 100, y: 150 }, data: { label: 'C' } },
{ id: 'D', position: { x: 0, y: 260 }, data: { label: 'D' } }
]);