Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix crash when navigating to topic from notebook properties

ammarahm-edb68c5c6b024f
diff --git a/apps/mobile/src/components/Properties/topics.js b/apps/mobile/src/components/Properties/topics.js
index 292353ebd..5715c3a5b 100644
--- a/apps/mobile/src/components/Properties/topics.js
+++ b/apps/mobile/src/components/Properties/topics.js
@@ -10,8 +10,10 @@ import {Button} from '../Button';
export const Topics = ({item, close}) => {
const [state] = useTracked();
const {colors} = state;
- const open = () => {
+
+ const open = (topic) => {
close();
+
let routeName = 'NotesPage';
let params = {...topic, menu: false, get: 'topics'};
let headerState = {
@@ -32,7 +34,7 @@ export const Topics = ({item, close}) => {
// text: colors.accent
// }}
height={30}
- onPress={open}
+ onPress={() => open(topic)}
icon="bookmark-outline"
fontSize={SIZE.xs + 1}
style={{