File tree Expand file tree Collapse file tree 4 files changed +6
-2
lines changed Expand file tree Collapse file tree 4 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,7 @@ function getTaskObjectivePorgress(task: TaskObjectiveProgress) {
113
113
const { data : taskObjectiveProgress } = useGetTaskObjectiveProgressQuery ( {
114
114
variables : {
115
115
taskId : task . task . id ,
116
+ username : 'Google_114813486146105420824' ,
116
117
} ,
117
118
} ) ;
118
119
if ( taskObjectiveProgress === undefined ) {
Original file line number Diff line number Diff line change @@ -119,6 +119,7 @@ function getTaskObjectiveProgress(task: TaskStats) {
119
119
const { data : taskObjectiveProgress } = useGetTaskObjectiveProgressQuery ( {
120
120
variables : {
121
121
taskId : task . taskId ,
122
+ username : 'Google_114813486146105420824' ,
122
123
} ,
123
124
} ) ;
124
125
if ( taskObjectiveProgress === undefined ) {
Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ export default function MasteryRubricGrading({
34
34
const classes = useStyles ( ) ;
35
35
const [ masteryVal , setMastery ] = React . useState ( objectiveProgress . mastery ) ;
36
36
const [ editObjectiveGrade , { data } ] = useMutation ( EDIT_OBJECTIVE_GRADE ) ;
37
- console . log ( objectiveProgress ) ;
38
37
39
38
const handleChange = ( event : React . ChangeEvent < { value : unknown } > ) => {
40
39
// console.log(event.target.value);
@@ -47,7 +46,9 @@ export default function MasteryRubricGrading({
47
46
mastery : event . target . value ,
48
47
} ,
49
48
} ,
50
- } ) . catch ( ( error ) => console . log ( error ) ) ;
49
+ } )
50
+ . then ( ( data1 ) => alert ( data1 ) )
51
+ . catch ( ( error ) => console . log ( error ) ) ;
51
52
setMastery ( event . target . value as SetStateAction < Mastery > ) ;
52
53
} ;
53
54
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ function TaskView() {
18
18
console . log ( history . location ) ;
19
19
const taskObjectiveProgress = history . location . state ;
20
20
21
+ console . log ( taskObjectiveProgress ) ;
21
22
const { username } = useParams < Record < string , string | undefined > > ( ) ;
22
23
if ( taskId === undefined ) {
23
24
return < > Task Undefined</ > ;
You can’t perform that action at this time.
0 commit comments