mirror of
https://github.com/zadam/trilium.git
synced 2025-11-11 00:49:00 +01:00
fix(react/type_widgets): unable to switch to notes of same note type
This commit is contained in:
parent
5e83e6fa34
commit
bb7fa9a2e6
@ -220,7 +220,7 @@ function NoteDetailWrapper({ Element, type, isVisible, isFullHeight, props }: {
|
||||
} else {
|
||||
// Do nothing, keep the old props.
|
||||
}
|
||||
}, [ isVisible ]);
|
||||
}, [ props, isVisible ]);
|
||||
|
||||
const typeMapping = TYPE_MAPPINGS[type];
|
||||
return (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user