Skip to content

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

fix trash not loaded sometimes

ammarahm-ed40cf0687dc8f
diff --git a/apps/mobile/src/views/Trash/index.js b/apps/mobile/src/views/Trash/index.js
index d4391d25a..7ffde3adc 100644
--- a/apps/mobile/src/views/Trash/index.js
+++ b/apps/mobile/src/views/Trash/index.js
@@ -26,6 +26,10 @@ export const Trash = ({route, navigation}) => {
setTrash();
});
});
+
+ console.log(trash);
+ if (trash.length === 0) setTrash();
+
updateSearch();
ranAfterInteractions = false;
};