From 20348d5f05b0abcb14fea5dcaa772b2d88f5cbb4 Mon Sep 17 00:00:00 2001 From: Wyatt Johnson Date: Mon, 20 Mar 2017 15:58:33 -0600 Subject: [PATCH] Fixed bug in loading more comments --- client/coral-framework/graphql/queries/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/coral-framework/graphql/queries/index.js b/client/coral-framework/graphql/queries/index.js index fa9d0f866..86e0646bc 100644 --- a/client/coral-framework/graphql/queries/index.js +++ b/client/coral-framework/graphql/queries/index.js @@ -39,7 +39,7 @@ export const getCounts = (data) => ({asset_id, limit, sort}) => { }); }; -export const loadMore = (data) => ({limit, cursor, parent_id, asset_id, sort}, newComments) => { +export const loadMore = (data) => ({limit, cursor, parent_id = null, asset_id, sort}, newComments) => { return data.fetchMore({ query: LOAD_MORE, variables: {