Skip to content

Commit e1ffcde

Browse files
ma-rom0e33
authored andcommitted
Hotfix polls (#162)
* Hotfix back link in edit.html * Hotfix polls
1 parent 49b00cd commit e1ffcde

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/javascript/components/AnswerOption.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class AnswerOption extends React.Component<
116116
answers
117117
};
118118
const response = await axios.post(
119-
`/lectures/${lecture_id}/polls/${poll_id}/save_answers`,
119+
`/courses/${course_id}/lectures/${lecture_id}/polls/${poll_id}/save_answers`,
120120
data
121121
);
122122
const newUrl = response.request.responseURL;

app/views/polls/show.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
</li>
3030
<% end %>
3131
</ol>
32-
<%= link_to 'Answer', edit_lecture_poll_path(@lecture, @poll) %> |
32+
<%= link_to 'Answer', edit_course_lecture_poll_path(@lecture, @poll) %> |
3333

3434
<% else %>
3535
<h3>Options</h3>

0 commit comments

Comments
 (0)