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) InvoicesView(invoices: artifacts.invoices)
} }
if show_images, self.preview != nil { if let preview = self.preview, show_images {
self.preview preview
} else { } else {
ForEach(artifacts.links, id:\.self) { link in ForEach(artifacts.links, id:\.self) { link in
if let url = link { if let url = link {