diff --git a/Demo/DemoChat/Sources/UI/Images/ImageCreationView.swift b/Demo/DemoChat/Sources/UI/Images/ImageCreationView.swift index ef6628ff..98ea5216 100644 --- a/Demo/DemoChat/Sources/UI/Images/ImageCreationView.swift +++ b/Demo/DemoChat/Sources/UI/Images/ImageCreationView.swift @@ -57,7 +57,7 @@ public struct ImageCreationView: View { if !$store.images.isEmpty { Section("Images") { ForEach($store.images, id: \.self) { image in - let urlString = image.wrappedValue.url + let urlString = image.wrappedValue.url ?? "" if let imageURL = URL(string: urlString), UIApplication.shared.canOpenURL(imageURL) { LinkPreview(previewURL: imageURL) .aspectRatio(contentMode: .fit)