fix(type_widgets): switching between note types shows wrong content

This commit is contained in:
Elian Doran
2025-11-09 13:24:12 +02:00
parent d4194c503c
commit c772430dd0

View File

@@ -193,12 +193,12 @@ export default function NoteDetail() {
ref={containerRef}
class={`note-detail ${isFullHeight ? "full-height" : ""}`}
>
{Object.entries(noteTypesToRender.current).map(([ type, Element ]) => {
{Object.entries(noteTypesToRender.current).map(([ itemType, Element ]) => {
return <NoteDetailWrapper
Element={Element}
key={type}
type={type as ExtendedNoteType}
isVisible={activeNoteType === type}
key={itemType}
type={itemType as ExtendedNoteType}
isVisible={type === itemType}
isFullHeight={isFullHeight}
props={props}
/>