mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 21:43:41 +00:00
Fix crash
This commit is contained in:
parent
f871c7aaf5
commit
8ffdd4d51f
@ -68,14 +68,13 @@ final class SubscribedChannelsModel: ObservableObject, CacheModel {
|
||||
return
|
||||
}
|
||||
|
||||
DispatchQueue.main.async { [weak self] in
|
||||
guard let self else { return }
|
||||
let request = force ? resource?.load() : resource?.loadIfNeeded()
|
||||
guard request != nil else { return }
|
||||
|
||||
loadCachedChannels(account)
|
||||
|
||||
DispatchQueue.main.async { [weak self] in
|
||||
guard let self else { return }
|
||||
|
||||
self.isLoading = true
|
||||
|
||||
request?
|
||||
|
Loading…
Reference in New Issue
Block a user