mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-03 12:41:45 +02:00
fix tag bar appears on first launch in editor
This commit is contained in:
@@ -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 = `
|
||||
|
||||
Reference in New Issue
Block a user