Skip to content

Commit

Permalink
UIIN-3161 Handle null typeIds in `browse/config/instance-classifi…
Browse files Browse the repository at this point in the history
…cation` response (#2693)
  • Loading branch information
BogdanDenis committed Dec 17, 2024
1 parent ab6712c commit 9ef98c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change history for ui-inventory

## [12.0.7] (IN PROGRESS)

* Handle `null` `typeIds` in `browse/config/instance-classification` response. Fixes UIIN-3161.

## [12.0.6](https://github.com/folio-org/ui-inventory/tree/v12.0.6) (2024-12-06)
[Full Changelog](https://github.com/folio-org/ui-inventory/compare/v12.0.5...v12.0.6)

Expand Down
2 changes: 1 addition & 1 deletion src/components/BrowseResultsList/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const getClassificationQuery = (qindex, data, row) => {
.find(config => config.id === classificationBrowseConfigId)?.typeIds;

const classificationBrowseTypesQuery = classificationBrowseTypes
.map(typeId => `classifications.classificationTypeId=="${typeId}"`)
?.map(typeId => `classifications.classificationTypeId=="${typeId}"`)
.join(' or ');

if (classificationBrowseTypesQuery) {
Expand Down

0 comments on commit 9ef98c4

Please sign in to comment.