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

caishunfeng pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new 6b1a952c6b add if judge (#14290)
6b1a952c6b is described below

commit 6b1a952c6b744bf9e115cb39266dee2f235a2f3c
Author: jackfanwan <[email protected]>
AuthorDate: Wed Jun 7 14:57:48 2023 +0800

    add if judge (#14290)
---
 .../definition/components/timing-modal.tsx         | 25 +++++++++++-----------
 1 file changed, 13 insertions(+), 12 deletions(-)

diff --git 
a/dolphinscheduler-ui/src/views/projects/workflow/definition/components/timing-modal.tsx
 
b/dolphinscheduler-ui/src/views/projects/workflow/definition/components/timing-modal.tsx
index a76993b299..6a112ba5b7 100644
--- 
a/dolphinscheduler-ui/src/views/projects/workflow/definition/components/timing-modal.tsx
+++ 
b/dolphinscheduler-ui/src/views/projects/workflow/definition/components/timing-modal.tsx
@@ -298,18 +298,19 @@ export default defineComponent({
           </NFormItem>
           <NFormItem label=' ' showFeedback={false}>
             <NList>
-              <NListItem>
-                <NThing
-                  description={t('project.workflow.next_five_execution_times')}
-                >
-                  {this.schedulePreviewList.map((item: string) => (
-                    <NSpace>
-                      {item}
-                      <br />
-                    </NSpace>
-                  ))}
-                </NThing>
-              </NListItem>
+                {this.schedulePreviewList.length > 0 ?
+                    <NListItem>
+                        <NThing
+                            
description={t('project.workflow.next_five_execution_times')}
+                        >
+                            {this.schedulePreviewList.map((item: string) => (
+                                <NSpace>
+                                    {item}
+                                    <br/>
+                                </NSpace>
+                            ))}
+                        </NThing>
+                    </NListItem> : null}
             </NList>
           </NFormItem>
           <NFormItem

Reply via email to