From ec1fc6d28dc4c96750ad8d02ae0c785c7971a7b3 Mon Sep 17 00:00:00 2001 From: Justin Georgi Date: Sun, 28 Jul 2024 21:40:13 -0700 Subject: [PATCH] Fix info label crash Signed-off-by: Justin Georgi --- src/pages/detect.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/detect.vue b/src/pages/detect.vue index cef6aad..5b4c8fc 100644 --- a/src/pages/detect.vue +++ b/src/pages/detect.vue @@ -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: {