fix locked toggle (#8926)

Co-authored-by: CarinaWolli <wollencarina@gmail.com>
pull/8927/head
Carina Wollendorfer 2023-05-16 13:04:03 +02:00 committed by GitHub
parent 08956e54c5
commit 38fb7a3f77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ function EventWorkflowsTab(props: Props) {
const dataWf = data.workflows.find((wf) => wf.id === workflowOnEventType.id);
return {
...workflowOnEventType,
readOnly: isChildrenManagedEventType && dataWf?.teamId ? true : dataWf?.readOnly ?? true,
readOnly: isChildrenManagedEventType && dataWf?.teamId ? true : dataWf?.readOnly ?? false,
} as WorkflowType;
});
const disabledWorkflows = data.workflows.filter(