From 96aded6b035a284e1b12c0c23325dcb53c0cd2e3 Mon Sep 17 00:00:00 2001
From: Faisal Amir
Date: Tue, 30 Jan 2024 17:04:56 +0700
Subject: [PATCH] fix: showing catch error on modal when change folder
---
.../Settings/Advanced/DataFolder/ModalErrorSetDestGlobal.tsx | 2 +-
web/screens/Settings/Advanced/DataFolder/index.tsx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/screens/Settings/Advanced/DataFolder/ModalErrorSetDestGlobal.tsx b/web/screens/Settings/Advanced/DataFolder/ModalErrorSetDestGlobal.tsx
index 125cd18bdc..d80e34f3cb 100644
--- a/web/screens/Settings/Advanced/DataFolder/ModalErrorSetDestGlobal.tsx
+++ b/web/screens/Settings/Advanced/DataFolder/ModalErrorSetDestGlobal.tsx
@@ -30,7 +30,7 @@ const ModalErrorSetDestGlobal = () => {
Oops! Something went wrong. Jan data folder remains the same. Please
try again.
- {error}
+ {error}
setShow(false)}>
diff --git a/web/screens/Settings/Advanced/DataFolder/index.tsx b/web/screens/Settings/Advanced/DataFolder/index.tsx
index b7bb88cdd0..1704cd9645 100644
--- a/web/screens/Settings/Advanced/DataFolder/index.tsx
+++ b/web/screens/Settings/Advanced/DataFolder/index.tsx
@@ -75,7 +75,7 @@ const DataFolder = () => {
setShowLoader(false)
setShowChangeFolderError(true)
}
- }, [destinationPath, setShowChangeFolderError])
+ }, [destinationPath, setError, setShowChangeFolderError])
return (