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

abeizn 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 19ae3f145 fix(config-ui): cannot click the custom in frequency (#5436)
19ae3f145 is described below

commit 19ae3f145e5e03bd16175303c4a41511426106aa
Author: 青湛 <[email protected]>
AuthorDate: Mon Jun 12 15:37:34 2023 +0800

    fix(config-ui): cannot click the custom in frequency (#5436)
---
 config-ui/src/config/cron.ts                                          | 2 +-
 config-ui/src/pages/blueprint/detail/components/sync-policy/index.tsx | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/config-ui/src/config/cron.ts b/config-ui/src/config/cron.ts
index ddcdbdd8c..fed86dbdb 100644
--- a/config-ui/src/config/cron.ts
+++ b/config-ui/src/config/cron.ts
@@ -89,7 +89,7 @@ export const getCronOptions = () => {
     )
     .concat([
       {
-        value: 'custom',
+        value: '',
         label: 'Custom',
         subLabel: '',
       },
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 feacbb1a4..1586e321c 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
@@ -57,7 +57,7 @@ export const SyncPolicy = ({
     const value = (e.target as HTMLInputElement).value;
     if (value === 'manual') {
       onChangeIsManual(true);
-    } else if (value === 'custom') {
+    } else if (!value) {
       onChangeIsManual(false);
       onChangeCronConfig('* * * * *');
     } else {
@@ -86,7 +86,7 @@ export const SyncPolicy = ({
               <Radio key={value} label={`${label} ${subLabel}`} value={value} 
/>
             ))}
           </RadioGroup>
-          {cron.value === 'custom' && (
+          {!cron.value && (
             <>
               <S.Input>
                 <FormGroup label="Minute">

Reply via email to