mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-19 16:10:12 +01:00
🚨
This commit is contained in:
parent
15f1510d6c
commit
13332781c9
7 changed files with 13 additions and 13 deletions
|
|
@ -171,7 +171,7 @@ export const openSnippets = () => {
|
|||
}, (searchResponse) => {
|
||||
dialog.element.querySelectorAll(`.fn__flex-1 > div > [data-type="${inputItem.dataset.type}"]`).forEach((snipeetPanel: Element) => {
|
||||
snipeetPanel.classList.add("fn__none");
|
||||
})
|
||||
});
|
||||
searchResponse.data.snippets.forEach((snippetItem: ISnippet) => {
|
||||
if (snippetItem.type === inputItem.dataset.type) {
|
||||
dialog.element.querySelector(`[data-id="${snippetItem.id}"]`).classList.remove("fn__none");
|
||||
|
|
@ -180,7 +180,7 @@ export const openSnippets = () => {
|
|||
});
|
||||
}
|
||||
});
|
||||
})
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue