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

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


The following commit(s) were added to refs/heads/release-v0.20 by this push:
     new ace5afef6 fix(config-ui): wrong default value (#6600) (#6604)
ace5afef6 is described below

commit ace5afef664f7e09ea3d3c929c0c7146d9c06d23
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Fri Dec 8 15:06:39 2023 +0800

    fix(config-ui): wrong default value (#6600) (#6604)
    
    Co-authored-by: 青湛 <[email protected]>
---
 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