Skip to content

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

fix tag bar appears on first launch in editor

ammarahm-ed5e7d58bcc2a5
diff --git a/apps/mobile/src/views/Editor/useEditorTags.js b/apps/mobile/src/views/Editor/useEditorTags.js
index 65d3b25c9..273591ff4 100644
--- a/apps/mobile/src/views/Editor/useEditorTags.js
+++ b/apps/mobile/src/views/Editor/useEditorTags.js
@@ -27,12 +27,9 @@ export const useEditorTags = () => {
refreshNote();
}, [currentEditingNote, tags]);
- async function load(data) {
- if (!data) {
+ function load() {
if (!note) return;
-
tiny.call(EditorWebView, renderTags(noteTags));
- }
}
useEffect(() => {
@@ -51,7 +48,7 @@ export const useEditorTags = () => {
}
useEffect(() => {
- tiny.call(EditorWebView, renderTags(noteTags));
+ load()
}, [noteTags]);
const hideTagBar = `