From 9c0bee549d0f9196141b5a0ed79763ed56ce22d4 Mon Sep 17 00:00:00 2001 From: Dmytro-Melnyshyn <77053927+Dmytro-Melnyshyn@users.noreply.github.com> Date: Tue, 18 Jun 2024 16:29:52 +0300 Subject: [PATCH] UIMARCAUTH-415: Pass the record search error to the SearchResultsList component. (#399) --- CHANGELOG.md | 1 + src/routes/BrowseRoute/BrowseRoute.js | 2 ++ src/routes/SearchRoute/SearchRoute.js | 2 ++ src/views/AuthoritiesSearch/AuthoritiesSearch.js | 4 ++++ 4 files changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d4858e3c..ea1c7d2c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - [UIMARCAUTH-396](https://issues.folio.org/browse/UIMARCAUTH-396) Add quickMARC shortcuts to modal. - [UIMARCAUTH-375](https://issues.folio.org/browse/UIMARCAUTH-375) Quick export from authority detail view. - [UIMARCAUTH-410](https://issues.folio.org/browse/UIMARCAUTH-410) Open manage authority file settings in full screen view. +- [UIMARCAUTH-410](https://issues.folio.org/browse/UIMARCAUTH-415) Pass the record search error to the `SearchResultsList` component. ## [5.0.1](https://github.com/folio-org/ui-marc-authorities/tree/v5.0.1) (2024-04-02) diff --git a/src/routes/BrowseRoute/BrowseRoute.js b/src/routes/BrowseRoute/BrowseRoute.js index fbfb344d..8e1e5289 100644 --- a/src/routes/BrowseRoute/BrowseRoute.js +++ b/src/routes/BrowseRoute/BrowseRoute.js @@ -50,6 +50,7 @@ const BrowseRoute = ({ children }) => { query, firstPageQuery, totalRecords, + error, } = useAuthoritiesBrowse({ filters, searchQuery, @@ -92,6 +93,7 @@ const BrowseRoute = ({ children }) => { return ( { isLoaded, totalRecords, query, + error, } = useAuthorities({ searchQuery, searchIndex, @@ -100,6 +101,7 @@ const SearchRoute = ({ children }) => { return (