MDL-83277 AI: Course Assistance - Remove browser console log

This commit is contained in:
raortegar
2024-09-27 09:55:11 +02:00
parent 97c2beae70
commit e9c2e52c9d
3 changed files with 2 additions and 4 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -311,12 +311,10 @@ const AICourseAssist = class {
try {
const responseObj = await Ajax.call([request])[0];
if (responseObj.error) {
window.console.log(responseObj.error);
this.displayError();
return;
} else {
if (!this.isRequestCancelled()) {
window.console.log(responseObj);
// Replace double line breaks with <br> and with </p><p> for paragraphs.
const generatedContent = AIHelper.replaceLineBreaks(responseObj.generatedcontent);
this.displayResponse(generatedContent);