Skip to content

Commit 18c5f78

Browse files
authored
fix(ui): calculate readonly with null workflow (#5164)
1 parent 896dd46 commit 18c5f78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ export class WorkflowShowComponent implements OnInit {
9090
} else {
9191
this.detailedWorkflow = s.workflow;
9292
}
93-
this.isReadOnly = !!this.detailedWorkflow.from_template;
9493
if (this.detailedWorkflow) {
94+
this.isReadOnly = !!this.detailedWorkflow.from_template;
9595
let from_repository = this.detailedWorkflow.from_repository;
9696
this.previewWorkflow = this.detailedWorkflow.preview;
9797
this.groups = cloneDeep(this.detailedWorkflow.groups);

0 commit comments

Comments
 (0)