🔧 Fixed the error check on Library page
This commit is contained in:
@@ -194,7 +194,7 @@ export const Library = (): ReactElement => {
|
|||||||
<div className="header-area">
|
<div className="header-area">
|
||||||
<h1 className="title">Library</h1>
|
<h1 className="title">Library</h1>
|
||||||
</div>
|
</div>
|
||||||
{!isUndefined(searchResults) ? (
|
{!isUndefined(searchResults?.hits) ? (
|
||||||
<div>
|
<div>
|
||||||
<div className="library">
|
<div className="library">
|
||||||
<T2Table
|
<T2Table
|
||||||
@@ -219,14 +219,15 @@ export const Library = (): ReactElement => {
|
|||||||
back.
|
back.
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
{/* <pre>
|
{!isUndefined(searchResults?.data?.meta?.body) ? (
|
||||||
{!isUndefined(searchResults?.code === 404 && !isLoading) &&
|
<pre>
|
||||||
JSON.stringify(
|
{JSON.stringify(
|
||||||
searchResults.meta.body.error.root_cause,
|
searchResults.data.meta.body.error.root_cause,
|
||||||
null,
|
null,
|
||||||
4,
|
4,
|
||||||
)}
|
)}
|
||||||
</pre> */}
|
</pre>
|
||||||
|
) : null}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user