mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-16 05:47:09 +08:00
refactor(core): make lit portal a bit cleaner (#9354)
This commit is contained in:
@@ -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>
|
||||
))}
|
||||
</>
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user