From 6b1a952c6b744bf9e115cb39266dee2f235a2f3c Mon Sep 17 00:00:00 2001 From: jackfanwan <61672564+jackfanwan@users.noreply.github.com> Date: Wed, 7 Jun 2023 14:57:48 +0800 Subject: [PATCH] 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({ - - - {this.schedulePreviewList.map((item: string) => ( - - {item} -
-
- ))} -
-
+ {this.schedulePreviewList.length > 0 ? + + + {this.schedulePreviewList.map((item: string) => ( + + {item} +
+
+ ))} +
+
: null}