AA-651: fix dates tab undefined property (#372)

This commit is contained in:
Carla Duarte
2021-02-26 15:59:49 -05:00
committed by GitHub
parent 38617c827e
commit 58eb9fe23c

View File

@@ -117,8 +117,7 @@ export async function getDatesTabData(courseId) {
return {};
}
if (httpErrorStatus === 401) {
global.location.replace(`${getConfig().LMS_BASE_URL}/courses/${courseId}/course`);
return {};
global.location.replace(`${getConfig().BASE_URL}/course/${courseId}/home`);
}
throw error;
}