allow empty and/or missing news

This commit is contained in:
Gabe Kangas
2021-04-11 23:56:41 -07:00
parent 6ebe52c5f4
commit 810a8a7e3f

View File

@@ -43,7 +43,9 @@ export default function NewsFeed() {
try {
const result = await fetchExternalData(OWNCAST_FEED_URL);
setFeed(result.items);
if (result?.items.length > 0) {
setFeed(result.items);
}
} catch (error) {
console.log('==== error', error);
}