[go: nahoru, domu]

Skip to content

Commit

Permalink
#2 update to support root level object refactor from firestore on nav…
Browse files Browse the repository at this point in the history
… student clicked
  • Loading branch information
MirTalpur committed Aug 29, 2020
1 parent 59f89b0 commit 82ad071
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/teacherDashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -1119,8 +1119,8 @@ export class TeacherDashboard extends React.Component {
});
}
else {
let userClicked = this.state.currentUserDoc.teacherStudents[index];
console.log("teacherStudents: " + JSON.stringify(this.state.currentUserDoc.teacherStudents[index]))
let userClicked = this.props.teacherStudentRef.data[index];
console.log("teacherStudents: " + JSON.stringify(this.props.teacherStudentRef.data[index]));
this.setState(prevState => ({
currentUserClicked: userClicked,
studentClicked: true,
Expand Down

0 comments on commit 82ad071

Please sign in to comment.