We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents effa964 + 67ac0bc commit 6cb66dcCopy full SHA for 6cb66dc
Sources/ArcGISToolkit/Components/Popups/AttachmentsPopupElementView.swift
@@ -80,11 +80,10 @@ struct AttachmentsPopupElementView: View {
80
}
81
82
.task {
83
- try? await popupElement.fetchAttachments()
84
- let attachmentModels = popupElement.attachments.reversed().map { attachment in
+ let attachmentModels = try? await popupElement.attachments.reversed().map { attachment in
85
AttachmentModel(attachment: attachment)
86
87
- viewModel.attachmentModels.append(contentsOf: attachmentModels)
+ viewModel.attachmentModels.append(contentsOf: attachmentModels ?? [])
88
isLoadingAttachments = false
89
90
0 commit comments