Merge pull request #1709 from albertgasset/MOBILE-2795
MOBILE-2795 assign: Fix fetching grades when assingment has no submis…main
commit
4c23e7e863
|
@ -269,6 +269,11 @@ export class AddonModAssignProvider {
|
|||
return assignment.grades;
|
||||
}
|
||||
} else if (response.warnings && response.warnings.length) {
|
||||
if (response.warnings[0].warningcode == 3) {
|
||||
// No grades found.
|
||||
return [];
|
||||
}
|
||||
|
||||
return Promise.reject(response.warnings[0]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue