Skip to content

Commit

Permalink
Copy lab workflow changes to lab-fem
Browse files Browse the repository at this point in the history
  • Loading branch information
eatyourgreens committed Jun 1, 2024
1 parent 332056d commit c1b489d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/pages/lab-fem/workflow.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import TaskOptions from '../lab/workflow-components/task-options.jsx';
import TaskEditor from '../lab/workflow-components/task-editor.jsx';
import TaskPicker from '../lab/workflow-components/task-picker.jsx';
import { isThisProjectUsingFEMLab, isWorkflowUsingJSONSubjects, FEM_LAB_PREVIEW_HOST } from './fem-lab-utilities.js';
import removeTaskKeyFromWorkflow from '../lab/helpers/removeTaskKeyFromWorkflow.js';

const DEMO_SUBJECT_SET_ID = process.env.NODE_ENV === 'production'
? '6' // Cats
Expand Down Expand Up @@ -848,8 +849,9 @@ class EditWorkflowPage extends Component {
changes[`tasks.${taskKey}`] = undefined;
this.props.workflow.update(changes);
}
removeTaskKeyFromWorkflow(this.props.workflow, taskKey);

return this.updateFirstTask();
return this.updateFirstTask().save();
}
}
};
Expand Down

0 comments on commit c1b489d

Please sign in to comment.