[FIX] incomplete tests not deleted properly

Ensure tests are deleted from state instead of stored as undefined
This commit is contained in:
2021-09-12 12:09:33 +01:00
parent 24f7780fe8
commit b32329b480
2 changed files with 2 additions and 2 deletions

View File

@@ -130,7 +130,7 @@ export default class History extends Component {
let newState = {
progressHistoryIncomplete: this.state.progressHistoryIncomplete,
};
delete newState.progressHistoryIncomplete[progressIndex];
newState.progressHistoryIncomplete.splice(progressIndex, 1);
this.setState(newState);
});
}