Skip to content

Commit

Permalink
UIPQB-140 fix preview to display records when result is more than 100 (
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaSedyx authored Oct 16, 2024
1 parent a20f8f8 commit f47790f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useAsyncDataSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f47790f

Please sign in to comment.