Skip to content

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

mobile: fix search not update on changing item property

Ammar Ahmed146ac1293589
diff --git a/apps/mobile/app/screens/search/index.tsx b/apps/mobile/app/screens/search/index.tsx
index 17523227a..86b0dd551 100644
--- a/apps/mobile/app/screens/search/index.tsx
+++ b/apps/mobile/app/screens/search/index.tsx
@@ -89,7 +89,7 @@ export const Search = ({ route, navigation }: NavigationProps<"Search">) => {
useEffect(() => {
const onRefreshSearch = (type: string) => {
- if (type === route.params?.type) {
+ if (type === undefined || type === route.params?.type) {
onSearch(currentQuery.current);
}
};