Skip to content

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

fix move note dialog

ammarahm-ed22b4a65d75fc
diff --git a/apps/mobile/src/components/MoveNoteDialog/index.js b/apps/mobile/src/components/MoveNoteDialog/index.js
index 8580287a1..5cdaf337a 100644
--- a/apps/mobile/src/components/MoveNoteDialog/index.js
+++ b/apps/mobile/src/components/MoveNoteDialog/index.js
@@ -137,7 +137,7 @@ const IntComponent = ({close, note, setNote}) => {
newTopicTitle = null;
};
- const handlePress = async () => {
+ const handlePress = async (item,index) => {
if (
note?.notebooks?.findIndex(
(o) =>
@@ -398,7 +398,7 @@ const IntComponent = ({close, note, setNote}) => {
}
renderItem={({item, index}) => (
<PressableButton
- onPress={handlePress}
+ onPress={() => handlePress(item,index)}
type="gray"
customStyle={{
height: 50,