source:
reactapp/src/Util/findParentThread.js@
9bf1f8d
Last change on this file since 9bf1f8d was 9bf1f8d, checked in by , 20 months ago | |
---|---|
|
|
File size: 130 bytes |
Line | |
---|---|
1 | export const findParentThread = (post) => { |
2 | if (post.parent === null) return post; |
3 | return findParentThread(post.parent); |
4 | } |
Note:
See TracBrowser
for help on using the repository browser.