From 3c7b090a1f2df9cecace58a16b85f7bc7a100b7b Mon Sep 17 00:00:00 2001 From: Paul Kaplan Date: Fri, 14 Dec 2018 14:03:18 -0500 Subject: [PATCH] Change the endpoint for loading single comments --- src/redux/preview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/redux/preview.js b/src/redux/preview.js index ec5433169..9cc1f1a42 100644 --- a/src/redux/preview.js +++ b/src/redux/preview.js @@ -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) {