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

View File

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