This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a commit to branch release-v0.20-auto-cherry-pick-6600
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git

commit df61b9302e475cc2f9eac78590e44e6432f234bd
Author: 青湛 <[email protected]>
AuthorDate: Fri Dec 8 15:00:00 2023 +0800

    fix(config-ui): wrong default value (#6600)
---
 config-ui/src/pages/blueprint/detail/components/sync-policy/index.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/config-ui/src/pages/blueprint/detail/components/sync-policy/index.tsx 
b/config-ui/src/pages/blueprint/detail/components/sync-policy/index.tsx
index a191db7ec..2c22754ff 100644
--- a/config-ui/src/pages/blueprint/detail/components/sync-policy/index.tsx
+++ b/config-ui/src/pages/blueprint/detail/components/sync-policy/index.tsx
@@ -62,7 +62,7 @@ export const SyncPolicy = ({
       const opt = cronOpts.find((it) => it.value === cronConfig);
       setSelectedValue(opt ? opt.label : 'Custom');
     }
-  }, []);
+  }, [isManual, cronConfig]);
 
   const [timezone, quickTimeOpts] = useMemo(() => {
     const timezone = dayjs().format('ZZ').replace('00', '');

Reply via email to