This is an automated email from the ASF dual-hosted git repository.
klesh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new 817bb2ba9 fix(config-ui): wrong default value (#6600)
817bb2ba9 is described below
commit 817bb2ba9ea5f9add275eb01960ab7152a334c3f
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', '');