From e2d0807e9a6d7c96b80355dd1c3a21ca659e7ea4 Mon Sep 17 00:00:00 2001 From: Eugene Burmakin Date: Sun, 4 May 2025 11:50:47 +0200 Subject: [PATCH] Fix the self-hosted flag --- app/javascript/controllers/maps_controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/controllers/maps_controller.js b/app/javascript/controllers/maps_controller.js index 7e38c781..5c1eefab 100644 --- a/app/javascript/controllers/maps_controller.js +++ b/app/javascript/controllers/maps_controller.js @@ -40,7 +40,7 @@ export default class extends BaseController { console.log("Map controller connected"); this.apiKey = this.element.dataset.api_key; - this.selfHosted = this.element.dataset.self_hosted === "true"; + this.selfHosted = this.element.dataset.self_hosted; this.markers = JSON.parse(this.element.dataset.coordinates); this.timezone = this.element.dataset.timezone; this.userSettings = JSON.parse(this.element.dataset.user_settings);