Fix info label crash
All checks were successful
Build Dev PWA / Build-PWA (push) Successful in 33s

Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
This commit is contained in:
2024-07-28 21:40:13 -07:00
parent 7b800d6b39
commit ec1fc6d28d

View File

@@ -295,7 +295,7 @@
infoLinkTarget () {
if (!this.getInfoUrl) return ''
let structure = this.showResults.find( r => r.resultIndex == this.selectedChip)
return this.getInfoUrl + structure.label.replaceAll(' ','_')
return structure ? this.getInfoUrl + structure.label.replaceAll(' ','_') : ''
}
},
methods: {