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

tangyun pushed a commit to branch release-1.17
in repository https://gitbox.apache.org/repos/asf/flink.git


The following commit(s) were added to refs/heads/release-1.17 by this push:
     new 89cbd394a6c [FLINK-33474][runtime-web] fix undefined error of show 
plan in job submit page
89cbd394a6c is described below

commit 89cbd394a6cbfce1ca685362bf9ce4cf476bca7d
Author: Yu Chen <[email protected]>
AuthorDate: Tue Nov 7 14:01:29 2023 +0800

    [FLINK-33474][runtime-web] fix undefined error of show plan in job submit 
page
---
 .../web-dashboard/src/app/pages/submit/submit.component.ts             | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/flink-runtime-web/web-dashboard/src/app/pages/submit/submit.component.ts 
b/flink-runtime-web/web-dashboard/src/app/pages/submit/submit.component.ts
index cfa74457a54..8e14bcf82c1 100644
--- a/flink-runtime-web/web-dashboard/src/app/pages/submit/submit.component.ts
+++ b/flink-runtime-web/web-dashboard/src/app/pages/submit/submit.component.ts
@@ -78,7 +78,7 @@ export class SubmitComponent implements OnInit, OnDestroy {
   public validateForm: UntypedFormGroup;
   public planVisible = false;
 
-  @ViewChild(DagreComponent, { static: true }) private readonly 
dagreComponent: DagreComponent;
+  @ViewChild(DagreComponent) private readonly dagreComponent: DagreComponent;
 
   private readonly destroy$ = new Subject<void>();
 
@@ -177,6 +177,7 @@ export class SubmitComponent implements OnInit, OnDestroy {
       )
       .subscribe(data => {
         this.planVisible = true;
+        this.cdr.detectChanges();
         this.dagreComponent.flush(data.nodes, data.links, true);
       });
   }

Reply via email to