From 920159b9697fab82971420e5a286feffb2371698 Mon Sep 17 00:00:00 2001 From: taoliu12 Date: Wed, 11 Oct 2023 22:19:28 -0700 Subject: [PATCH] show no results message if assets is not an array --- client/src/views/AssetsList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/views/AssetsList.tsx b/client/src/views/AssetsList.tsx index 9e6fad3d..5d6e908c 100644 --- a/client/src/views/AssetsList.tsx +++ b/client/src/views/AssetsList.tsx @@ -51,7 +51,7 @@ type Props = { function AssetsList(props: Props): JSX.Element { const { classes } = useStyles(); const { assets, headerContentRight, headerText } = props; - if (!assets) return <> ; + if (!assets || !Array.isArray(assets)) return <> No Results; return (