From 3459e067b35e3ce715f825382dd242124277c979 Mon Sep 17 00:00:00 2001 From: Scott Pfeil Date: Tue, 5 Sep 2023 10:21:19 -0400 Subject: [PATCH] Change to have 1 item shared --- .../MVMCore/ActionHandling/ActionOpenPageHandler.swift | 8 ++------ MVMCore/MVMCore/ActionHandling/ActionShareHandler.swift | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/MVMCore/MVMCore/ActionHandling/ActionOpenPageHandler.swift b/MVMCore/MVMCore/ActionHandling/ActionOpenPageHandler.swift index ea40b42..989971a 100644 --- a/MVMCore/MVMCore/ActionHandling/ActionOpenPageHandler.swift +++ b/MVMCore/MVMCore/ActionHandling/ActionOpenPageHandler.swift @@ -90,12 +90,8 @@ public extension ClientParameterHandler { } } return try await withCheckedThrowingContinuation({ continuation in - do { - try getParameters(with: model, requestParameters: requestParameters, actionId: actionId) { parameters in - continuation.resume(returning: parameters) - } - } catch { - continuation.resume(throwing: error) + getParameters(with: model, requestParameters: requestParameters, actionId: actionId) { parameters in + continuation.resume(returning: parameters) } }) } diff --git a/MVMCore/MVMCore/ActionHandling/ActionShareHandler.swift b/MVMCore/MVMCore/ActionHandling/ActionShareHandler.swift index c0a83bc..e82baa2 100644 --- a/MVMCore/MVMCore/ActionHandling/ActionShareHandler.swift +++ b/MVMCore/MVMCore/ActionHandling/ActionShareHandler.swift @@ -20,7 +20,7 @@ open class ActionShareHandler: MVMCoreActionHandlerProtocol { shareData = [model.sharedText] case .url: let url = try URL.createURL(with: model.sharedText) - shareData = [model.sharedText, url] + shareData = [url] } try await shareWith(activityItems: shareData, model: model) }