From 45472cb218b389a7fec55bba15aa0d072ab5a8b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Sat, 13 Jun 2020 13:28:09 +0200 Subject: [PATCH] Properly pass pagination values to the API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- src/services/CommentApi.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/services/CommentApi.js b/src/services/CommentApi.js index 7e2306804..31fd98bef 100644 --- a/src/services/CommentApi.js +++ b/src/services/CommentApi.js @@ -32,6 +32,7 @@ export class CommentApi { async loadComments({ cardId, limit, offset }) { const api = await axios.get(generateOcsUrl(`apps/deck/api/v1.0/cards`, 2) + `${cardId}/comments`, { + params: { limit, offset }, headers: { 'OCS-APIRequest': 'true' }, }) return api.data.ocs.data