Skip to content

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

mobile: fix crash when data is null in list

ammarahm-edc9a657298c29
diff --git a/apps/mobile/app/components/list/index.js b/apps/mobile/app/components/list/index.js
index 495f8b323..28c3fc7bf 100644
--- a/apps/mobile/app/components/list/index.js
+++ b/apps/mobile/app/components/list/index.js
@@ -218,12 +218,14 @@ const List = ({
}
/>
</Animated.View>
- <JumpToSectionDialog
- screen={screen}
- data={listData}
- type={screen === "Notes" ? "home" : type}
- scrollRef={scrollRef}
- />
+ {listData ? (
+ <JumpToSectionDialog
+ screen={screen}
+ data={listData}
+ type={screen === "Notes" ? "home" : type}
+ scrollRef={scrollRef}
+ />
+ ) : null}
</>
);
};