| 1656 | const tag = tags.find(x => x.id === id); | 1656 | const tag = tags.find(x => x.id === id); |
| 1657 | const otherTags = sortTags(tags.filter(x => x.id !== id).map(x => ({ id: x.id, name: x.name }))); | 1657 | const otherTags = sortTags(tags.filter(x => x.id !== id).map(x => ({ id: x.id, name: x.name }))); |
| 1658 | | 1658 | |
| 1659 | const popupContent = $(await renderTemplateAsync('deleteTag', {otherTags})); | 1659 | const popupContent = $(await renderTemplateAsync('deleteTag', { otherTags })); |
| 1660 | | 1660 | |
| 1661 | appendTagToList(popupContent.find('#tag_to_delete'), tag); | 1661 | appendTagToList(popupContent.find('#tag_to_delete'), tag); |
| 1662 | | 1662 | |