[FLINK-33474][runtime-web] fix undefined error of show plan in job submit page
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 cfa7445..8e14bcf 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 @@
   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 @@
       )
       .subscribe(data => {
         this.planVisible = true;
+        this.cdr.detectChanges();
         this.dagreComponent.flush(data.nodes, data.links, true);
       });
   }