[FIX] incomplete tests not deleted properly
Ensure tests are deleted from state instead of stored as undefined
This commit is contained in:
@@ -226,7 +226,7 @@ export default withRouter(class LoggedInHome extends React.Component {
|
||||
let newState = {
|
||||
progressHistoryIncomplete: this.state.progressHistoryIncomplete,
|
||||
};
|
||||
delete newState.progressHistoryIncomplete[progressIndex];
|
||||
newState.progressHistoryIncomplete.splice(progressIndex, 1);
|
||||
this.setState(newState);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user