Skip to content

Commit

Permalink
Catch empty timetable error with new API
Browse files Browse the repository at this point in the history
  • Loading branch information
neuland-system committed Oct 2, 2023
1 parent 24f3f24 commit 03629b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rogue-thi-app/lib/backend/authenticated-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export class AuthenticatedAPIClient extends AnonymousAPIClient {
}
} catch (e) {
// when the user did not select any classes, the timetable returns 'Query not possible'
if (e.data === 'Query not possible') {
if (e.data === 'Query not possible' || e.data === 'Time table does not exist') {
return {
timetable: []
}
Expand Down

0 comments on commit 03629b7

Please sign in to comment.