From 475cf770bd351e8d2a5481301e0503d4c6c0c373 Mon Sep 17 00:00:00 2001 From: Aysel Afsar Date: Sun, 28 Nov 2021 20:09:42 +0300 Subject: [PATCH] #76 Fix DICOM attribute search on sidebar --- .github/workflows/release.yml | 2 +- src/components/sidebar/views/SidebarPreview.vue | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cb6c83f..c61a0b0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -79,7 +79,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: ${{ steps.build_release.outputs.version }} + tag_name: v${{ steps.build_release.outputs.version }} release_name: ${{ steps.build_release.outputs.version }} draft: false prerelease: false diff --git a/src/components/sidebar/views/SidebarPreview.vue b/src/components/sidebar/views/SidebarPreview.vue index eb0e251..3786172 100644 --- a/src/components/sidebar/views/SidebarPreview.vue +++ b/src/components/sidebar/views/SidebarPreview.vue @@ -169,8 +169,9 @@ export default { } const filter = this.attributeSearchText.toUpperCase(); this.attributes = this.cachedAllAttributes.filter(attr => - attr.tagName.toUpperCase().indexOf(filter) > -1 || - attr.tagName.toUpperCase().indexOf(filter.replace(/\s/g, '')) > -1 + (attr.tagName && attr.tagName.toUpperCase().indexOf(filter) > -1) || + (attr.tagName && attr.tagName.toUpperCase().indexOf(filter.replace(/\s/g, '')) > -1) || + (attr.tagValue && attr.tagValue.indexOf(filter) > -1) ).slice(); }, },