jackfanwan 1 rok temu
rodzic
commit
6b1a952c6b

+ 13 - 12
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