diff --git a/netlify.toml b/netlify.toml index 01c3568e..4f3cee2c 100644 --- a/netlify.toml +++ b/netlify.toml @@ -7,6 +7,7 @@ NODE_ENV = "production" NPM_CONFIG_AUDIT = "false" NPM_CONFIG_FUND = "false" NPM_FLAGS = "--ignore-scripts" +SPACES_MODE = "rooms" [build.processing.html] pretty_urls = true @@ -18,4 +19,4 @@ Strict-Transport-Security = "max-age=63072000; includeSubDomains; preload" Referrer-Policy = "no-referrer-when-downgrade" X-Content-Type-Options = "nosniff" X-Frame-Options = "SAMEORIGIN" -X-XSS-Protection = "1; mode=block" \ No newline at end of file +X-XSS-Protection = "1; mode=block" diff --git a/src/stores/map.ts b/src/stores/map.ts index d8acb5f6..6c70557d 100644 --- a/src/stores/map.ts +++ b/src/stores/map.ts @@ -27,7 +27,7 @@ export const useMapStore = defineStore("map", () => { spaceSlug: space.slug, buildingSlug: space.building.slug, buildingNumber: space.building.number, - buildingOccupancy: space.building.occupancy, + buildingOccupancy: space.occupancy || "unknown", isOpen: spaceIsOpen(now, space.openingHours), ...space.facilities, },