summaryrefslogtreecommitdiff
path: root/content-src/components/DiscoveryStreamComponents/List/List.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'content-src/components/DiscoveryStreamComponents/List/List.jsx')
-rw-r--r--content-src/components/DiscoveryStreamComponents/List/List.jsx10
1 files changed, 6 insertions, 4 deletions
diff --git a/content-src/components/DiscoveryStreamComponents/List/List.jsx b/content-src/components/DiscoveryStreamComponents/List/List.jsx
index 3c31db08..093eae27 100644
--- a/content-src/components/DiscoveryStreamComponents/List/List.jsx
+++ b/content-src/components/DiscoveryStreamComponents/List/List.jsx
@@ -126,19 +126,21 @@ export function _List(props) {
);
};
- const feed = props.data;
- if (!feed || !feed.recommendations) {
+ const {data} = props;
+ if (!data || !data.recommendations) {
return null;
}
// Handle the case where a user has dismissed all recommendations
- const isEmpty = feed.recommendations.length === 0;
+ const isEmpty = data.recommendations.length === 0;
return (
<div>
{props.header && props.header.title ? <div className="ds-header">{props.header.title}</div> : null }
{isEmpty ?
- <div className="ds-list empty"><DSEmptyState /></div> :
+ <div className="ds-list empty">
+ <DSEmptyState status={data.status} dispatch={props.dispatch} feed={props.feed} />
+ </div> :
renderList()
}
</div>