mirror of
https://github.com/wassname/talk.git
synced 2026-07-06 01:08:30 +08:00
8 lines
209 B
JavaScript
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];
|