]> git.ipfire.org Git - thirdparty/google/fonts.git/commitdiff
tags.html: fix copy family 9557/head
authorMarc Foley <m.foley.88@gmail.com>
Thu, 12 Jun 2025 08:46:51 +0000 (09:46 +0100)
committerMarc Foley <m.foley.88@gmail.com>
Thu, 12 Jun 2025 08:46:51 +0000 (09:46 +0100)
.ci/tags.html

index 4a92b20a3ae6cd764c96284bb015bab6685c1a27..a6aa06f8153e00a83ff7ea673642302c370b779f 100644 (file)
@@ -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();
       },