Merge pull request #515 from automatisch/issue-510

fix: disable adding new step in published flow
This commit is contained in:
Ömer Faruk Aydın 2022-09-21 01:23:27 +03:00 committed by GitHub
commit fe200fb790
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -108,7 +108,7 @@ export default function Editor(props: EditorProps): React.ReactElement {
onChange={onStepChange}
/>
<IconButton onClick={() => addStep(step.id)} color="primary" disabled={creationInProgress}>
<IconButton onClick={() => addStep(step.id)} color="primary" disabled={creationInProgress || flow.active}>
<AddIcon />
</IconButton>
</React.Fragment>