We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4194c5 commit c772430Copy full SHA for c772430
apps/client/src/widgets/NoteDetail.tsx
@@ -193,12 +193,12 @@ export default function NoteDetail() {
193
ref={containerRef}
194
class={`note-detail ${isFullHeight ? "full-height" : ""}`}
195
>
196
- {Object.entries(noteTypesToRender.current).map(([ type, Element ]) => {
+ {Object.entries(noteTypesToRender.current).map(([ itemType, Element ]) => {
197
return <NoteDetailWrapper
198
Element={Element}
199
- key={type}
200
- type={type as ExtendedNoteType}
201
- isVisible={activeNoteType === type}
+ key={itemType}
+ type={itemType as ExtendedNoteType}
+ isVisible={type === itemType}
202
isFullHeight={isFullHeight}
203
props={props}
204
/>
0 commit comments