From 6f3f8e9dd0c53bfd27e7e9e658595b9769e46a6a Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Wed, 3 Jul 2024 14:17:35 +0200 Subject: [PATCH] Fix #2116 --- .../StatusKit/Editor/Components/MediaView.swift | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Packages/StatusKit/Sources/StatusKit/Editor/Components/MediaView.swift b/Packages/StatusKit/Sources/StatusKit/Editor/Components/MediaView.swift index 3e08fa2a..b9d86fb9 100644 --- a/Packages/StatusKit/Sources/StatusKit/Editor/Components/MediaView.swift +++ b/Packages/StatusKit/Sources/StatusKit/Editor/Components/MediaView.swift @@ -106,6 +106,11 @@ extension StatusEditor { } } } + .alert("alert.error", isPresented: $isErrorDisplayed) { + Button("Ok", action: {}) + } message: { + Text(container.error?.localizedDescription ?? "") + } .overlay(alignment: .bottomTrailing) { makeAltMarker(container: container) } @@ -194,11 +199,6 @@ extension StatusEditor { placeholderView Text("status.editor.error.upload") } - .alert("alert.error", isPresented: $isErrorDisplayed) { - Button("Ok", action: {}) - } message: { - Text(error.error ?? "") - } } private func makeAltMarker(container: MediaContainer) -> some View {