mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-22 08:10:59 +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
|
$pushSubscriptionAlerts
|
||||||
.dropFirst()
|
.dropFirst()
|
||||||
.removeDuplicates()
|
.removeDuplicates()
|
||||||
.sink(receiveValue: update(alerts:))
|
.sink { [weak self] in self?.update(alerts: $0) }
|
||||||
.store(in: &cancellables)
|
.store(in: &cancellables)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue