Skip to content

Commit 6cb66dc

Browse files
authored
Merge pull request #289 from Esri/df/fixBuild
Fix build error
2 parents effa964 + 67ac0bc commit 6cb66dc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Sources/ArcGISToolkit/Components/Popups/AttachmentsPopupElementView.swift

+2-3
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,10 @@ struct AttachmentsPopupElementView: View {
8080
}
8181
}
8282
.task {
83-
try? await popupElement.fetchAttachments()
84-
let attachmentModels = popupElement.attachments.reversed().map { attachment in
83+
let attachmentModels = try? await popupElement.attachments.reversed().map { attachment in
8584
AttachmentModel(attachment: attachment)
8685
}
87-
viewModel.attachmentModels.append(contentsOf: attachmentModels)
86+
viewModel.attachmentModels.append(contentsOf: attachmentModels ?? [])
8887
isLoadingAttachments = false
8988
}
9089
}

0 commit comments

Comments
 (0)