From d35af6ae6196ab5b59d4c60a3b1c04b9026afbee Mon Sep 17 00:00:00 2001 From: dcore94 Date: Wed, 12 Apr 2023 15:49:47 +0200 Subject: [PATCH] changed orthography --- ccp/js/methodeditorcontroller.js | 2 +- ccp/js/methodlistcontroller.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ccp/js/methodeditorcontroller.js b/ccp/js/methodeditorcontroller.js index f557a23..6c64892 100644 --- a/ccp/js/methodeditorcontroller.js +++ b/ccp/js/methodeditorcontroller.js @@ -788,7 +788,7 @@ class CCPMethodEditorController extends HTMLElement{ renderCategoryHints(){ const ml = document.querySelector("d4s-ccp-methodlist") const cats = ml.getCategoryHints() - if(cats.indexOf("Uncategorized") === -1) cats.push("Uncategorized") + if(cats.indexOf("Uncategorised") === -1) cats.push("Uncategorised") return ` ${cats.map(c=>``)} diff --git a/ccp/js/methodlistcontroller.js b/ccp/js/methodlistcontroller.js index 709e7e8..8bd9b2b 100644 --- a/ccp/js/methodlistcontroller.js +++ b/ccp/js/methodlistcontroller.js @@ -191,7 +191,7 @@ class CCPMethodList extends HTMLElement{ this.#filtered = this.#filtered.reduce((catalog, meth)=>{ const categories = meth.metadata.filter(md=>md.role === "category").map(c=>c.title) if(categories.length === 0){ - catalog["Uncategorized"].push(meth) + catalog["Uncategorised"].push(meth) }else{ for(let c in categories){ const category = categories[c] @@ -200,7 +200,7 @@ class CCPMethodList extends HTMLElement{ } } return catalog - }, { "Uncategorized" : []}) + }, { "Uncategorised" : []}) } getCategoryHints(){