fix(react/type_widgets): unable to switch to notes of same note type

This commit is contained in:
Elian Doran
2025-11-06 12:02:48 +02:00
parent 5e83e6fa34
commit bb7fa9a2e6

View File

@@ -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 (