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

huajiang 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 fc65c185dc [Fix-14601][UI] Ironed out the issue with choosing an 
environment on the task form of both types of DMS and DATASYNC. (#14605)
fc65c185dc is described below

commit fc65c185dc52d0d390be002c97d69f3b9001ea1f
Author: calvin <[email protected]>
AuthorDate: Thu Jul 20 22:27:28 2023 +0800

    [Fix-14601][UI] Ironed out the issue with choosing an environment on the 
task form of both types of DMS and DATASYNC. (#14605)
    
    * worked out this issue
---
 .../src/views/projects/task/components/node/tasks/use-datasync.ts       | 2 +-
 .../src/views/projects/task/components/node/tasks/use-dms.ts            | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/dolphinscheduler-ui/src/views/projects/task/components/node/tasks/use-datasync.ts
 
b/dolphinscheduler-ui/src/views/projects/task/components/node/tasks/use-datasync.ts
index 2cf5029a47..91de2f8cc5 100644
--- 
a/dolphinscheduler-ui/src/views/projects/task/components/node/tasks/use-datasync.ts
+++ 
b/dolphinscheduler-ui/src/views/projects/task/components/node/tasks/use-datasync.ts
@@ -69,7 +69,7 @@ export function useDatasync({
       Fields.useDescription(),
       Fields.useTaskPriority(),
       Fields.useWorkerGroup(),
-      Fields.useEnvironmentName(model, !model.id),
+      Fields.useEnvironmentName(model, !data?.id),
       ...Fields.useTaskGroup(model, projectCode),
       ...Fields.useFailed(),
       ...Fields.useResourceLimit(),
diff --git 
a/dolphinscheduler-ui/src/views/projects/task/components/node/tasks/use-dms.ts 
b/dolphinscheduler-ui/src/views/projects/task/components/node/tasks/use-dms.ts
index 74e00fd997..66c2c643da 100644
--- 
a/dolphinscheduler-ui/src/views/projects/task/components/node/tasks/use-dms.ts
+++ 
b/dolphinscheduler-ui/src/views/projects/task/components/node/tasks/use-dms.ts
@@ -70,7 +70,7 @@ export function useDms({
       Fields.useDescription(),
       Fields.useTaskPriority(),
       Fields.useWorkerGroup(),
-      Fields.useEnvironmentName(model, !model.id),
+      Fields.useEnvironmentName(model, !data?.id),
       ...Fields.useTaskGroup(model, projectCode),
       ...Fields.useFailed(),
       ...Fields.useResourceLimit(),

Reply via email to