chore(right_pane): missing key for custom widgets

This commit is contained in:
Elian Doran 2025-12-20 11:17:29 +02:00
parent e82e92c22c
commit eeea96b98c
No known key found for this signature in database

View File

@ -28,7 +28,7 @@ export default function RightPanelContainer({ customWidgets }: { customWidgets:
const items = (rightPaneVisible ? [ const items = (rightPaneVisible ? [
(noteType === "text" || noteType === "doc") && <TableOfContents />, (noteType === "text" || noteType === "doc") && <TableOfContents />,
noteType === "text" && highlightsList.length > 0 && <HighlightsList />, noteType === "text" && highlightsList.length > 0 && <HighlightsList />,
...customWidgets.map((w) => <CustomWidget originalWidget={w} />) ...customWidgets.map((w) => <CustomWidget key={w._noteId} originalWidget={w as LegacyRightPanelWidget} />)
] : []).filter(Boolean); ] : []).filter(Boolean);
return ( return (