diff --git a/examples/discovery-search-app/src/App.js b/examples/discovery-search-app/src/App.js index 1de7a8574..6027a9ea1 100644 --- a/examples/discovery-search-app/src/App.js +++ b/examples/discovery-search-app/src/App.js @@ -150,7 +150,7 @@ function PreviewPage() { const { selectedResult: { document: selectedDocument }, searchResponseStore: { data: searchResponse }, - fetchDocumentsResponseStore: { data: fetchDocumentResponse, isLoading } + fetchDocumentsResponseStore: { data: fetchDocumentResponse, isLoading, isError, error } } = useContext(SearchContext); const { fetchDocuments, setSelectedResult } = useContext(SearchApi); @@ -202,7 +202,9 @@ function PreviewPage() { tooltipAlignment="start" /> - {isLoading ? ( + {isError ? ( +