()
| 14636 | await autoSaveMultipleModels('tags', [tagName]); // Pass only the new tag |
| 14637 | } else { |
| 14638 | // For single-edit ADD, save the full list for that model |
| 14639 | const currentTags = Array.from(tagContainer.querySelectorAll('.tag')) |
| 14640 | .map(t => t.getAttribute('data-tag-name')); |
| 14641 | const filePath = getModelFilePath(); |
| 14642 | if (filePath) { |
| 14643 | await autoSaveModel('tags', currentTags, filePath); |
| 14644 | } else { |
| 14645 | console.error('No file path found for saving tags'); |
| 14646 | } |
| 14647 | } |
| 14648 | } |
| 14649 |
no outgoing calls
no test coverage detected