Skip to content

Commit 2f4d409

Browse files
committed
Fixed writing new reviews
1 parent 4c9e2b2 commit 2f4d409

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tcf_website/static/reviews/new_review.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jQuery(function ($) {
6969
&page_size=${pageSize}&recent`;
7070
$.getJSON(courseEndpoint, function (data) {
7171
// Generate option tags
72-
$.each(data.results, function (i, course) {
72+
$.each(data, function (i, course) {
7373
$("<option />", {
7474
val: course.id,
7575
text: course.number + " | " + course.title,
@@ -105,7 +105,7 @@ jQuery(function ($) {
105105
clearDropdown("#instructor"); // Empty dropdown
106106

107107
// Generate option tags
108-
$.each(data.results, function (i, instr) {
108+
$.each(data, function (i, instr) {
109109
$("<option />", {
110110
val: instr.id,
111111
text: instr.last_name + ", " + instr.first_name,

0 commit comments

Comments
 (0)