From ea9ebdc23fb4a60b99e80a37d4c52b62ee6f0909 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Thu, 1 Oct 2020 13:13:33 +0200 Subject: [PATCH] fix asset list empty fallback * seems aquarius returns `total_results: 1` when there are no `results` --- src/components/organisms/AssetList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/organisms/AssetList.tsx b/src/components/organisms/AssetList.tsx index c696c3077..da0d9565c 100644 --- a/src/components/organisms/AssetList.tsx +++ b/src/components/organisms/AssetList.tsx @@ -43,7 +43,7 @@ const AssetList: React.FC = ({ queryResult }) => { return ( <>
- {queryResult?.totalResults > 0 ? ( + {queryResult?.results.length > 0 ? ( queryResult.results.map((ddo: DDO) => { const { attributes } = ddo.findServiceByType('metadata')