]> git.ipfire.org Git - thirdparty/google/fonts.git/commitdiff
set placeholder value to 0
authorMarc Foley <m.foley.88@gmail.com>
Wed, 28 May 2025 13:49:08 +0000 (14:49 +0100)
committerMarc Foley <m.foley.88@gmail.com>
Wed, 28 May 2025 13:49:08 +0000 (14:49 +0100)
.ci/tags.html

index 9f0b6f915f1fb3b228fad0ba50e54c91fe21582e..b6d13c004cd61404bd2f429f6e87cefe2d3a5e74 100644 (file)
@@ -622,14 +622,14 @@ function axesCombos(axes) {
         const familiesToAdd = this.uniqueFamilies
         familiesToAdd.forEach((family) => {
           if (!seen.has(family.name)) {
-            this.tags.push(new FontTag(family.name, this.currentCategory, score=""));
+            this.tags.push(new FontTag(family.name, this.currentCategory, score=0));
           }
         });
         this.history.push(`+ Placeholder tags added for ${this.currentCategory}`);
       },
       RemovePlaceHolderTags() {
         this.isEdited = true;
-        this.tags = this.tags.filter((family) => family.score !== "");
+        this.tags = this.tags.filter((family) => family.score !== 0);
         this.history.push(`- Placeholder tags removed for all categories`);
       },
       removeFamily(Family) {