(snippetId: number, contentId: number)
| 604 | } |
| 605 | |
| 606 | async function deleteSnippetContent(snippetId: number, contentId: number) { |
| 607 | try { |
| 608 | await api.snippets.deleteSnippetsByIdContentsByContentId( |
| 609 | String(snippetId), |
| 610 | String(contentId), |
| 611 | ) |
| 612 | |
| 613 | // Состав списка не меняется — достаточно обновить выбранную запись. |
| 614 | await refreshSelectedSnippet() |
| 615 | } |
| 616 | catch (error) { |
| 617 | console.error(error) |
| 618 | } |
| 619 | } |
| 620 | |
| 621 | async function addTagToSnippet(tagId: number, snippetId: number) { |
| 622 | try { |
nothing calls this directly
no test coverage detected