Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UIPQB-54: Add support for array fields in query results #77

Merged
merged 1 commit into from
Jan 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 2 additions & 0 deletions src/QueryBuilder/ResultViewer/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ export const getTableMetadata = (entityType) => {
formatted[value] = (item) => {
if (dataType === DATA_TYPES.DateType) {
return <FormattedDate value={item[value]} />;
} else if (dataType === DATA_TYPES.ArrayType) {
return item[value].join('|');
} else {
// If value is empty we will return empty string
// instead of undefined
Expand Down
Loading