From a639d8e50f11298c2f3b5d1421b2fd6c8636a542 Mon Sep 17 00:00:00 2001 From: Lino Schmidt Date: Sun, 19 Jun 2022 00:45:05 +0200 Subject: [PATCH] Fixed empty output path on abort --- src/components/ui/mainSide.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/ui/mainSide.tsx b/src/components/ui/mainSide.tsx index c8d38f0..3e094ad 100644 --- a/src/components/ui/mainSide.tsx +++ b/src/components/ui/mainSide.tsx @@ -105,8 +105,10 @@ function openVid(updateHook:React.Dispatch>) { "openDirectory" ] }).then(result => { - updateSettings({output:String(result.filePaths)}); - updateHook(String(result.filePaths)); + if(result.filePaths.length > 0) { + updateSettings({output:String(result.filePaths)}); + updateHook(String(result.filePaths)); + } }).catch(err => { logger.errorMSG(err); });