diff options
| author | Petri Hienonen <petri.hienonen@gmail.com> | 2025-11-15 19:12:48 +0200 |
|---|---|---|
| committer | Petri Hienonen <petri.hienonen@gmail.com> | 2025-11-15 19:14:02 +0200 |
| commit | a44f2de806d0557b148dcdf36a3107cb4ecf31ce (patch) | |
| tree | 9868794be4dbf2be820add96dae560f95369fce9 /app/main.js | |
| parent | 64acc82b9634d948517ec5bb2ebe5a33cdf22df6 (diff) | |
| download | housing-a44f2de806d0557b148dcdf36a3107cb4ecf31ce.tar.zst | |
Minor fixes
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, |
