Minor refactor

This commit is contained in:
William Casarin
2023-01-14 17:24:03 -08:00
parent 9a40fd595d
commit 18c7cba53c

View File

@@ -91,8 +91,8 @@ struct NoteContentView: View {
InvoicesView(invoices: artifacts.invoices)
}
if show_images, self.preview != nil {
self.preview
if let preview = self.preview, show_images {
preview
} else {
ForEach(artifacts.links, id:\.self) { link in
if let url = link {