Files
talk/client/coral-framework/utils/index.js
T
2017-04-06 18:15:02 -03:00

8 lines
209 B
JavaScript

/**
* 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];