diff --git a/CHANGELOG.md b/CHANGELOG.md index 74730731..185a2123 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ * [UIPQB-64](https://issues.folio.org/browse/UIPQB-64) Query builder can’t edit single condition queries without AND wrapper * [UIPQB-53](https://issues.folio.org/browse/UIPQB-53) Add support for $contains and $not_contains operators * [UIPQB-66](https://issues.folio.org/browse/UIPQB-66) Localize dates in results view. +* [UIPQB-54](https://issues.folio.org/browse/UIPQB-54) Add support for array fields in query results. ## [1.0.0](https://github.com/folio-org/ui-plugin-query-builder/tree/v1.0.0) (2023-10-12) diff --git a/src/QueryBuilder/ResultViewer/helpers.js b/src/QueryBuilder/ResultViewer/helpers.js index 13c8b3f1..5e0582b1 100644 --- a/src/QueryBuilder/ResultViewer/helpers.js +++ b/src/QueryBuilder/ResultViewer/helpers.js @@ -24,6 +24,8 @@ export const getTableMetadata = (entityType) => { formatted[value] = (item) => { if (dataType === DATA_TYPES.DateType) { return ; + } else if (dataType === DATA_TYPES.ArrayType) { + return item[value].join('|'); } else { // If value is empty we will return empty string // instead of undefined