Skip to content

Commit bb7fa9a

Browse files
committed
fix(react/type_widgets): unable to switch to notes of same note type
1 parent 5e83e6f commit bb7fa9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/client/src/widgets/NoteDetail.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ function NoteDetailWrapper({ Element, type, isVisible, isFullHeight, props }: {
220220
} else {
221221
// Do nothing, keep the old props.
222222
}
223-
}, [ isVisible ]);
223+
}, [ props, isVisible ]);
224224

225225
const typeMapping = TYPE_MAPPINGS[type];
226226
return (

0 commit comments

Comments
 (0)