From cf02e97c8026979cad6505ab6a95b0c97650b89e Mon Sep 17 00:00:00 2001 From: Ravi Meijer Date: Mon, 2 Dec 2024 14:49:09 +0100 Subject: [PATCH] Not show accordion if no results --- frontend/src/components/SubResult.vue | 191 ++++++++++++-------------- 1 file changed, 91 insertions(+), 100 deletions(-) diff --git a/frontend/src/components/SubResult.vue b/frontend/src/components/SubResult.vue index 2d0c15b..a3c84b9 100644 --- a/frontend/src/components/SubResult.vue +++ b/frontend/src/components/SubResult.vue @@ -58,112 +58,103 @@ const filteredLabels = computed(() => { return filtered }) +const hasLabels = computed(() => { + return Object.keys(filteredLabels.value).length > 0 +})