diff --git a/client/coral-framework/utils/index.js b/client/coral-framework/utils/index.js index 7c0767fe2..6d589cf23 100644 --- a/client/coral-framework/utils/index.js +++ b/client/coral-framework/utils/index.js @@ -1,2 +1,7 @@ -export const getActionSummary = (type, comment) => comment.action_summaries - .filter((a) => a.__typename === type)[0]; +/** +* getActionSummary +* retrieves the action summary based on the type and the comment +*/ + +export const getActionSummary = (type, comment) => + comment.action_summaries.filter(a => a.__typename === type)[0];