mirror of
https://github.com/wassname/talk.git
synced 2026-07-17 11:33:39 +08:00
getActionSummary exp
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user