diff --git a/Mlem/Views/Shared/Components/Image Upload/LinkAttachmentModel.swift b/Mlem/Views/Shared/Components/Image Upload/LinkAttachmentModel.swift index 338f7a470..5da57fb92 100644 --- a/Mlem/Views/Shared/Components/Image Upload/LinkAttachmentModel.swift +++ b/Mlem/Views/Shared/Components/Image Upload/LinkAttachmentModel.swift @@ -145,10 +145,10 @@ class LinkAttachmentModel: ObservableObject { if let task = self.uploadTask { task.cancel() } + self.photosPickerItem = nil switch self.imageModel?.state { case .uploaded(file: let file): if let file = file { - self.photosPickerItem = nil Task { do { if let compareUrl { diff --git a/Mlem/Views/Shared/Composer/ResponseEditorView.swift b/Mlem/Views/Shared/Composer/ResponseEditorView.swift index 0aebea587..4b4ae5f17 100644 --- a/Mlem/Views/Shared/Composer/ResponseEditorView.swift +++ b/Mlem/Views/Shared/Composer/ResponseEditorView.swift @@ -33,15 +33,7 @@ struct ResponseEditorView: View { private var isReadyToReply: Bool { editorBody.trimmed.isNotEmpty } - - func uploadImage() { - if editorModel.canUpload { - print("Uploading") - } else { - print("Uploading disabled for this sort of response") - } - } - + var body: some View { ScrollView { VStack(spacing: AppConstants.postAndCommentSpacing) {