Unverified Commit 8ea6a978 authored by Ray Schamp's avatar Ray Schamp Committed by GitHub

Merge pull request #2488 from paulkaplan/change-comment-endpoint

Change the endpoint for loading single comments
parents 92ac2786 3c7b090a
......@@ -481,7 +481,7 @@ module.exports.getTopLevelComments = (id, offset, isAdmin, token) => (dispatch =
module.exports.getCommentById = (projectId, commentId, isAdmin, token) => (dispatch => {
dispatch(module.exports.setFetchStatus('comments', module.exports.Status.FETCHING));
api({
uri: `${isAdmin ? '/admin' : ''}/projects/comments/${commentId}`,
uri: `${isAdmin ? '/admin' : ''}/projects/${projectId}/comments/${commentId}`,
authentication: isAdmin ? token : null
}, (err, body) => {
if (err) {
......
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