diff --git a/CHANGELOG.md b/CHANGELOG.md index 85efd1a8..15dc8169 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ * [FOLIO-4086](https://folio-org.atlassian.net/browse/FOLIO-4086) Fix GitHub Actions workflow not running for tags * [UIPQB-133](https://folio-org.atlassian.net/browse/UIPQB-133) Add getFilteredOptions function for enhanced option filtering * [UIPQB-137](https://folio-org.atlassian.net/browse/UIPQB-137) Spell out query builder operators +* [UIPQB-140](https://folio-org.atlassian.net/browse/UIPQB-140) fix preview to display records when result is more than 100 ## [1.1.4](https://github.com/folio-org/ui-plugin-query-builder/tree/v1.1.4) (2024-04-02) diff --git a/src/hooks/useAsyncDataSource.js b/src/hooks/useAsyncDataSource.js index 8194b6ff..67475c3f 100644 --- a/src/hooks/useAsyncDataSource.js +++ b/src/hooks/useAsyncDataSource.js @@ -12,7 +12,7 @@ const structuralSharing = (queryClient, key, newData) => { let data = newData; const { data: cachedData } = queryClient.getQueryState(key) || {}; - if (cachedData?.status && cachedData?.content && !newData?.content) { + if (cachedData?.status && cachedData?.content && !newData?.content?.length) { data = { ...newData, content: cachedData.content,