source:
reactapp/src/Util/findParentThread.js
Last change on this file was 9bf1f8d, checked in by , 2 years 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.