Skip to content

Commit 77b099f

Browse files
authored
fix: refresh codemirror (#6701)
1 parent 4d56ad0 commit 77b099f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ui/src/app/views/workflow/show/admin/workflow.admin.component.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import {
2+
AfterViewInit,
23
ChangeDetectionStrategy,
34
ChangeDetectorRef,
45
Component,
@@ -51,7 +52,7 @@ declare let CodeMirror: any;
5152
changeDetection: ChangeDetectionStrategy.OnPush
5253
})
5354
@AutoUnsubscribe()
54-
export class WorkflowAdminComponent implements OnInit, OnDestroy {
55+
export class WorkflowAdminComponent implements OnInit, OnDestroy, AfterViewInit {
5556

5657
_project: Project;
5758
@Input()
@@ -252,6 +253,10 @@ export class WorkflowAdminComponent implements OnInit, OnDestroy {
252253
}
253254
}
254255

256+
ngAfterViewInit() {
257+
this.codemirror.instance.refresh();
258+
}
259+
255260
initExistingtags(): void {
256261
this.existingTags = [];
257262
this.existingTagsPurge = [];

0 commit comments

Comments
 (0)