Skip to content

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

fix tags dialog is empty on open

ammarahm-ed98159b85a3d7
diff --git a/apps/mobile/src/components/TagsDialog/index.js b/apps/mobile/src/components/TagsDialog/index.js
index 7dfc20a5f..822881fe0 100644
--- a/apps/mobile/src/components/TagsDialog/index.js
+++ b/apps/mobile/src/components/TagsDialog/index.js
@@ -36,11 +36,10 @@ const TagsDialog = () => {
useEffect(() => {
if (visible) {
- setTimeout(() => {
+ console.log('sorting tags')
sortTags();
- }, 1);
}
- }, [allTags, note, query]);
+ }, [allTags, note, query,visible]);
const sortTags = () => {
let _tags = [...allTags];