mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-14 12:31:00 +00:00
Fix memory leak
This commit is contained in:
parent
650e6b2991
commit
3d8fd8d49b
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ class NotificationTypesPreferencesViewModel: ObservableObject {
|
|||
$pushSubscriptionAlerts
|
||||
.dropFirst()
|
||||
.removeDuplicates()
|
||||
.sink(receiveValue: update(alerts:))
|
||||
.sink { [weak self] in self?.update(alerts: $0) }
|
||||
.store(in: &cancellables)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue