Skip to content

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

fix crash on longpress pin item

ammarahm-ed75c684920e22
diff --git a/apps/mobile/src/components/NotesList/index.js b/apps/mobile/src/components/NotesList/index.js
index 32400deaa..6daad645e 100644
--- a/apps/mobile/src/components/NotesList/index.js
+++ b/apps/mobile/src/components/NotesList/index.js
@@ -194,7 +194,7 @@ export const NotesList = ({isGrouped = false}) => {
);
const _listKeyExtractor = (item, index) => item.id.toString();
-
+
return isGrouped && searchResults.length === 0 ? (
<SectionList
ref={ref => (sectionListRef = ref)}
@@ -288,6 +288,7 @@ const PinnedItems = () => {
borderBottomWidth: 0,
marginHorizontal: 0,
}}
+ onLongPress={() => {}}
pinned={true}
item={item}
index={index}