mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Handle nil better
This commit is contained in:
parent
8f3d3998ea
commit
68854dee50
1 changed files with 1 additions and 1 deletions
|
|
@ -206,7 +206,7 @@ struct EnvironmentMetricsLog: View {
|
|||
isPresented: $isExporting,
|
||||
document: CsvDocument(emptyCsv: exportString),
|
||||
contentType: .commaSeparatedText,
|
||||
defaultFilename: String("\(node.user!.longName ?? "Node") Environment Metrics Log"),
|
||||
defaultFilename: String("\(node.user?.longName ?? "Node") Environment Metrics Log"),
|
||||
onCompletion: { result in
|
||||
if case .success = result {
|
||||
print("Environment metrics log download succeeded.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue