fix tag bar appears on first launch in editor

This commit is contained in:
ammarahm-ed
2021-12-21 10:08:08 +05:00
parent d291796b0a
commit 5e7d58bcc2

View File

@@ -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 = `