Move hotel to 'tourism_accomodation', include hostels, fix #2070

This commit is contained in:
Pieter Vander Vennet 2024-08-12 23:49:46 +02:00
parent fde4e24abe
commit 8277bd3a1c
34 changed files with 647 additions and 754 deletions

View file

@ -108,6 +108,9 @@ export default class DetermineLayout {
).data
const id = layoutId?.toLowerCase()
const layouts = AllKnownLayouts.allKnownLayouts
if(layouts.size() == 0){
throw "Build failed or running, no layouts are known at all"
}
if (layouts.getConfig(id) === undefined) {
const alternatives = Utils.sortedByLevenshteinDistance(id, Array.from(layouts.keys()), i => i).slice(0, 3)
const msg = (`No builtin map theme with name ${layoutId} exists. Perhaps you meant one of ${alternatives.join(", ")}`)