Fix assorted nulls

This commit is contained in:
Garth Vander Houwen 2022-09-27 22:18:50 -07:00
parent 5ecf4a031c
commit 27a90c4dc4
13 changed files with 73 additions and 69 deletions

View file

@ -186,12 +186,12 @@ struct ExternalNotificationConfig: View {
self.bleManager.context = context
self.enabled = node!.externalNotificationConfig?.enabled ?? false
self.alertBell = node!.externalNotificationConfig?.alertBell ?? false
self.alertMessage = node!.externalNotificationConfig?.alertMessage ?? false
self.active = node!.externalNotificationConfig?.active ?? false
self.output = Int(node!.externalNotificationConfig?.output ?? 0)
self.outputMilliseconds = Int(node!.externalNotificationConfig?.outputMilliseconds ?? 0)
self.enabled = node?.externalNotificationConfig?.enabled ?? false
self.alertBell = node?.externalNotificationConfig?.alertBell ?? false
self.alertMessage = node?.externalNotificationConfig?.alertMessage ?? false
self.active = node?.externalNotificationConfig?.active ?? false
self.output = Int(node?.externalNotificationConfig?.output ?? 0)
self.outputMilliseconds = Int(node?.externalNotificationConfig?.outputMilliseconds ?? 0)
self.hasChanges = false
self.initialLoad = false