From 5c2a7028c8699ea626504ece84ccc705cd651f74 Mon Sep 17 00:00:00 2001 From: Marc Foley Date: Thu, 12 Jun 2025 09:46:51 +0100 Subject: [PATCH] tags.html: fix copy family --- .ci/tags.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.ci/tags.html b/.ci/tags.html index 4a92b20a3..a6aa06f81 100644 --- a/.ci/tags.html +++ b/.ci/tags.html @@ -678,15 +678,15 @@ function axesCombos(axes) { }, copyFamily() { this.isEdited = true; - let fromTags = this.tags.filter(family => family.name === this.fromFamily.name); + let fromTags = this.tags.filter(family => family.name === this.fromFamily); if (fromTags.length === 0) { alert(`No tags found for Family "${this.toFamily}"`); return; } fromTags.forEach((tag) => { - let newTag = {Family: this.toFamily, "Group/Tag": tag["Group/Tag"], Weight: tag.Weight}; + let newTag = new FontTag(this.toFamily, tag.category, tag.score); this.tags.push(newTag); - this.history.push(`+ ${newTag.Family},${newTag["Group/Tag"]},${newTag.Weight}`); + this.history.push(`+ ${newTag.name},${newTag.category},${newTag.score}`); }) this.saveSession(); }, -- 2.47.2