diff options
Diffstat (limited to 'app/main.js')
| -rw-r--r-- | app/main.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/main.js b/app/main.js index 6e862c0..9a4da0c 100644 --- a/app/main.js +++ b/app/main.js @@ -332,10 +332,10 @@ export class App { */ #showHouseModal(houseId, persistent) { const house = this.#collection.houses.find((h) => h.id === houseId); - if (!house) return; + if (!house) throw new Error("Parameter is not a number!"); this.#map.setModalPersistence(persistent); - this.#modal?.hide(); + this.#modal?.remove(); this.#modal = new Modal({ house: house, |
