From fa3d96dbb3a6cbbbe63baca94435bec90fa84e2c Mon Sep 17 00:00:00 2001 From: Andrej Date: Thu, 19 Sep 2024 15:39:52 +0200 Subject: [PATCH] Fix displaying of checklistitems for repository snapshots [SCI-11074] --- .../RepositoryChecklistValue.vue | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/app/javascript/vue/repository_item_sidebar/repository_values/RepositoryChecklistValue.vue b/app/javascript/vue/repository_item_sidebar/repository_values/RepositoryChecklistValue.vue index ca18b6f0b..fd348a0a3 100644 --- a/app/javascript/vue/repository_item_sidebar/repository_values/RepositoryChecklistValue.vue +++ b/app/javascript/vue/repository_item_sidebar/repository_values/RepositoryChecklistValue.vue @@ -16,14 +16,14 @@ > -
- {{ - index + 1 === computedArrOfItemObjects.length + index + 1 === colVal.length ? checklistItem?.label : `${checklistItem?.label} |` }} @@ -66,18 +66,6 @@ export default { this.selectedChecklistItemsIds = this.colVal.map((item) => String(item.value)); } }, - computed: { - computedArrOfItemObjects() { - const arrOfItemObjects = this.selectedChecklistItemsIds.map((id) => { - const matchingItem = this.availableChecklistItems.find((item) => item[0] === id); - return { - id: matchingItem ? matchingItem[0] : null, - label: matchingItem ? matchingItem[1] : null - }; - }); - return arrOfItemObjects; - } - }, methods: { fetchChecklistItems() { this.isLoading = true;