refactor(core): make lit portal a bit cleaner (#9354)

This commit is contained in:
pengx17 committed 2024-12-27 08:34:04 +00:00
1 parent 67be1fb47f
commit 153c1b2c55
3 files changed
+41 -53

No files matched your search

@@ -357,7 +357,7 @@ export const BiDirectionalLinkPanel = () => {
{
<>
{portals.map(p => (
<Fragment key={p.portal.key}>{p.portal}</Fragment>
<Fragment key={p.id}>{p.portal}</Fragment>
))}
</>
}
@@ -194,7 +194,7 @@ const usePatchSpecs = (shared: boolean, mode: DocMode) => {
() => (
<>
{portals.map(p => (
<Fragment key={p.portal.key}>{p.portal}</Fragment>
<Fragment key={p.id}>{p.portal}</Fragment>
))}
</>
),