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

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

View File

@@ -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>
))}
</>
}

View File

@@ -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>
))}
</>
),