show the starred articles

This commit is contained in:
Stuart Breckenridge 2020-11-23 11:12:17 +08:00
parent 348abb3f18
commit 7a989e4040
No known key found for this signature in database
GPG Key ID: 1F11FD62007DC331
1 changed files with 2 additions and 2 deletions

View File

@ -37,10 +37,10 @@ struct StarredWidgetView : View {
ForEach(0..<maxCount(), content: { i in
if i != 0 {
ArticleItemView(article: entry.widgetData.starredArticles[i],
deepLink: WidgetDeepLink.starredArticle(id: entry.widgetData.todayArticles[i].id).url)
deepLink: WidgetDeepLink.starredArticle(id: entry.widgetData.starredArticles[i].id).url)
.padding(.vertical, 4)
} else {
ArticleItemView(article: entry.widgetData.unreadArticles[i],
ArticleItemView(article: entry.widgetData.starredArticles[i],
deepLink: WidgetDeepLink.starredArticle(id: entry.widgetData.starredArticles[i].id).url)
.padding(.bottom, 4)
}