Fix crash when logging without widget items
This commit is contained in:
parent
0b52df4369
commit
002c931d26
|
@ -54,7 +54,9 @@ struct WidgetHelper {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.info("Saving widget data with first item: '\(prioritizedItems.first!.title ?? "<untitled>", privacy: .public)'")
|
if let item = prioritizedItems.first {
|
||||||
|
logger.info("Saving widget data with first item: '\(item.title ?? "<untitled>", privacy: .public)'")
|
||||||
|
}
|
||||||
|
|
||||||
WidgetData(recentItems: prioritizedItems).save(account: fervorController.account!)
|
WidgetData(recentItems: prioritizedItems).save(account: fervorController.account!)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue