Skip to content

Commit

Permalink
fix(VLE): Step auto save message appears when it shouldn't sometimes (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffreykwan authored Apr 15, 2023
1 parent 174fc69 commit a842c41
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/assets/wise5/vle/node/node.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,10 @@ export class NodeComponent implements OnInit {
}
const studentWorkList = savedStudentDataResponse.studentWorkList;
if (!componentId && studentWorkList && studentWorkList.length) {
this.latestComponentState = studentWorkList[studentWorkList.length - 1];
const latestComponentState = studentWorkList[studentWorkList.length - 1];
if (latestComponentState.nodeId === this.node.id) {
this.latestComponentState = latestComponentState;
}
} else {
this.clearLatestComponentState();
}
Expand Down

0 comments on commit a842c41

Please sign in to comment.