in room search added nullsafe to parsed room type descriptions as some are null

This commit is contained in:
adisposkofh
2026-08-10 15:17:50 +02:00
parent b27d2a6b62
commit 1ece31fa7a
@@ -129,7 +129,7 @@ export const Raumsuche = {
this.$api.call(ApiOrt.getRoomTypes())
.then(res => {
res?.data?.forEach(type => {
type.beschreibung = type.beschreibung.replace('&', '&')
type.beschreibung = type.beschreibung?.replace('&', '&')
})
this.selectedType = this.defaultType
this.roomtypes = res?.data ?? []