mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-10-27 14:23:00 +00:00
in room search added nullsafe to parsed room type descriptions as some are null
This commit is contained in:
@@ -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 ?? []
|
||||
|
||||
Reference in New Issue
Block a user