Skip to content

Commit

Permalink
#76 Fix DICOM attribute search on sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
ayselafsar committed Nov 28, 2021
1 parent a731a22 commit 475cf77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions src/components/sidebar/views/SidebarPreview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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();
},
},
Expand Down

0 comments on commit 475cf77

Please sign in to comment.