diff --git a/src/components/AdminPane/Manage/ManageTasks/EditTask/EditTask.js b/src/components/AdminPane/Manage/ManageTasks/EditTask/EditTask.js index d05cebb9e..4554d8910 100644 --- a/src/components/AdminPane/Manage/ManageTasks/EditTask/EditTask.js +++ b/src/components/AdminPane/Manage/ManageTasks/EditTask/EditTask.js @@ -65,7 +65,9 @@ export class EditTask extends Component { } else { const challengeState = _cloneDeep(this.challengeState) - challengeState.refreshAfterSave = true + if (challengeState) { + challengeState.refreshAfterSave = true + } this.props.history.push({ pathname:`/admin/project/${this.props.projectId}/` +