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