Commit c1225fe8 by tasawernawaz Committed by Tasawer Nawaz

show error on inlvalid course key

ECOM-7502
parent d4f37e4f
......@@ -42,7 +42,7 @@ $(document).ready(function() {
},
error: function (response) {
if(response.responseJSON.lms_course_id) {
$studioInstanceError.find(".copy").html(response.responseJSON.lms_course_id[0]);
$studioInstanceError.find(".copy").html(response.responseJSON.lms_course_id['lms_course_id']);
} else if(response.responseJSON.detail) {
$studioInstanceError.find(".copy").html(response.responseJSON.detail);
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment