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

mintsweet pushed a commit to branch fix-6593
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git

commit 021ab5854acc3c1ea715f2bfe49fd9f6234477da
Author: mintsweet <[email protected]>
AuthorDate: Fri Dec 8 13:39:15 2023 +0800

    fix(config-ui): wrong default value
---
 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