diff --git a/src/store/course-room-details.ts b/src/store/course-room-details.ts index c530005f7c..388fb32dd2 100644 --- a/src/store/course-room-details.ts +++ b/src/store/course-room-details.ts @@ -205,7 +205,9 @@ export default class CourseRoomDetailsModule extends VuexModule { columnBoards: string[]; }): Promise { this.resetBusinessError(); + console.log("exportSettings", exportSettings); try { + console.log("making the request"); const response = await this.getCommonCartridgeApi.commonCartridgeControllerExportCourse( this.roomData.roomId, @@ -220,6 +222,8 @@ export default class CourseRoomDetailsModule extends VuexModule { } ); + console.log("response", response); + const link = document.createElement("a"); link.href = URL.createObjectURL( new Blob([response.data as unknown as Blob]) @@ -230,6 +234,8 @@ export default class CourseRoomDetailsModule extends VuexModule { link.click(); URL.revokeObjectURL(link.href); } catch (error: any) { + console.log("error", error); + this.setBusinessError({ statusCode: error?.response?.status, message: error?.response?.statusText,