From a44f2de806d0557b148dcdf36a3107cb4ecf31ce Mon Sep 17 00:00:00 2001 From: Petri Hienonen Date: Sat, 15 Nov 2025 19:12:48 +0200 Subject: Minor fixes --- app/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/main.js') 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, -- cgit v1.2.3-70-g09d2