mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
fix asset list empty fallback
* seems aquarius returns `total_results: 1` when there are no `results`
This commit is contained in:
parent
f80f93489b
commit
ea9ebdc23f
@ -43,7 +43,7 @@ const AssetList: React.FC<AssetListProps> = ({ queryResult }) => {
|
||||
return (
|
||||
<>
|
||||
<div className={styles.assetList}>
|
||||
{queryResult?.totalResults > 0 ? (
|
||||
{queryResult?.results.length > 0 ? (
|
||||
queryResult.results.map((ddo: DDO) => {
|
||||
const { attributes } = ddo.findServiceByType('metadata')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user