From cdbca3b5940413de055d0053f330db8242327c8c Mon Sep 17 00:00:00 2001 From: Juan Hoyos Date: Thu, 21 Dec 2023 10:47:09 -0500 Subject: [PATCH 1/2] Removed model ID from SimpleUICard in FragmentCacher --- src/fragments/FragmentCacher/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fragments/FragmentCacher/index.ts b/src/fragments/FragmentCacher/index.ts index 16866b972..df29511f2 100644 --- a/src/fragments/FragmentCacher/index.ts +++ b/src/fragments/FragmentCacher/index.ts @@ -102,7 +102,7 @@ export class FragmentCacher extends LocalCacher { this.cards = []; for (const id of allIDs) { - const card = new SimpleUICard(this.components, id); + const card = new SimpleUICard(this.components); card.title = id; this.cards.push(card); @@ -156,7 +156,7 @@ export class FragmentCacher extends LocalCacher { for (const id of ids) { if (savedIDs.includes(id)) continue; - const card = new SimpleUICard(this.components, id); + const card = new SimpleUICard(this.components); card.title = id; this.cards.push(card); floatingMenu.addChild(card); From 39c6c6658fa64ea1c0fa8317aabe0dda6aa9c192 Mon Sep 17 00:00:00 2001 From: Juan Hoyos Date: Thu, 21 Dec 2023 10:48:24 -0500 Subject: [PATCH 2/2] Build the library --- resources/openbim-components.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/openbim-components.js b/resources/openbim-components.js index 51dbde6ff..8cb2632f7 100644 --- a/resources/openbim-components.js +++ b/resources/openbim-components.js @@ -104613,7 +104613,7 @@ class FragmentCacher extends LocalCacher { } this.cards = []; for (const id of allIDs) { - const card = new SimpleUICard(this.components, id); + const card = new SimpleUICard(this.components); card.title = id; this.cards.push(card); const deleteCardButton = new Button(this.components, { @@ -104657,7 +104657,7 @@ class FragmentCacher extends LocalCacher { for (const id of ids) { if (savedIDs.includes(id)) continue; - const card = new SimpleUICard(this.components, id); + const card = new SimpleUICard(this.components); card.title = id; this.cards.push(card); floatingMenu.addChild(card);