mirror of
https://github.com/yattee/yattee.git
synced 2025-08-06 10:44:06 +00:00
Fix for loading subscriptions
This commit is contained in:
@@ -12,7 +12,13 @@ struct SubscriptionsView: View {
|
||||
var body: some View {
|
||||
VideosView(videos: store.collection)
|
||||
.onAppear {
|
||||
resource.loadIfNeeded()
|
||||
if let home = InvidiousAPI.shared.home.loadIfNeeded() {
|
||||
home.onSuccess { _ in
|
||||
resource.loadIfNeeded()
|
||||
}
|
||||
} else {
|
||||
resource.loadIfNeeded()
|
||||
}
|
||||
}
|
||||
.refreshable {
|
||||
resource.load()
|
||||
|
Reference in New Issue
Block a user