From 16af6a1fcd9a9679b913337a3b3faa40ea9134b4 Mon Sep 17 00:00:00 2001 From: Herman_Khodyrev Date: Mon, 22 Sep 2025 10:24:42 +0300 Subject: [PATCH] fix error event on Video Editor Export Cancel --- ios/ContractConstants.swift | 1 + ios/VideoEditorModule.swift | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ios/ContractConstants.swift b/ios/ContractConstants.swift index 766b2cb..4fbf1b3 100644 --- a/ios/ContractConstants.swift +++ b/ios/ContractConstants.swift @@ -8,6 +8,7 @@ extension VideoEditorReactNative { static let errLicenseRevoked = "ERR_SDK_LICENSE_REVOKED" static let errMissingHost = "ERR_MISSING_HOST" static let errMissingExportResult = "ERR_MISSING_EXPORT_RESULT" + static let errVideoExportCancel = "ERR_VIDEO_EXPORT_CANCEL" static let inputParamToken = "token" static let inputParamFeaturesConfig = "featuresConfig" diff --git a/ios/VideoEditorModule.swift b/ios/VideoEditorModule.swift index 873e1f5..1623f4c 100644 --- a/ios/VideoEditorModule.swift +++ b/ios/VideoEditorModule.swift @@ -391,7 +391,7 @@ extension VideoEditorModule: BanubaVideoEditorDelegate { self.videoEditorSDK?.clearSessionData() } self.videoEditorSDK = nil - self.currentReject?(VideoEditorReactNative.errMissingExportResult, VideoEditorReactNative.errMessageVideoExportCancel, nil) + self.currentReject?(VideoEditorReactNative.errVideoExportCancel, VideoEditorReactNative.errMessageVideoExportCancel, nil) } }