MCPcopy Create free account
hub / github.com/massCodeIO/massCode / deleteTagFromSnippet

Function deleteTagFromSnippet

src/renderer/composables/useSnippets.ts:635–647  ·  view source on GitHub ↗
(tagId: number, snippetId: number)

Source from the content-addressed store, hash-verified

633}
634
635async function deleteTagFromSnippet(tagId: number, snippetId: number) {
636 try {
637 await api.snippets.deleteSnippetsByIdTagsByTagId(
638 String(snippetId),
639 String(tagId),
640 )
641 await getSnippets(queryByLibraryOrFolderOrSearch.value)
642 await refreshSelectedSnippet()
643 }
644 catch (error) {
645 console.error(error)
646 }
647}
648
649async function emptyTrash() {
650 const { confirm } = useDialog()

Callers

nothing calls this directly

Calls 2

refreshSelectedSnippetFunction · 0.85
getSnippetsFunction · 0.70

Tested by

no test coverage detected