From 5e7d58bcc2a5a9c571b876c1d04ccf8def3db562 Mon Sep 17 00:00:00 2001 From: ammarahm-ed Date: Tue, 21 Dec 2021 10:08:08 +0500 Subject: [PATCH] fix tag bar appears on first launch in editor --- apps/mobile/src/views/Editor/useEditorTags.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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 = `