Remove todos
This commit is contained in:
@@ -170,7 +170,11 @@ export function usePostThread({anchor}: {anchor?: string}) {
|
|||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
} else if (additionalItemsQuery.isError) {
|
} else if (additionalItemsQuery.isError) {
|
||||||
// TODO could insert error component
|
/*
|
||||||
|
* We could insert an special error component in here, but since these
|
||||||
|
* are optional additional replies, it's not critical that they're shown
|
||||||
|
* atm.
|
||||||
|
*/
|
||||||
return []
|
return []
|
||||||
} else if (additionalItemsQuery.data?.thread) {
|
} else if (additionalItemsQuery.data?.thread) {
|
||||||
const {threadItems} = sortAndAnnotateThreadItems(
|
const {threadItems} = sortAndAnnotateThreadItems(
|
||||||
|
|||||||
@@ -130,7 +130,6 @@ export function getThreadPostUI({
|
|||||||
precedesChildReadMore,
|
precedesChildReadMore,
|
||||||
followsReadMoreUp,
|
followsReadMoreUp,
|
||||||
}: TraversalMetadata): Extract<ThreadItem, {type: 'threadPost'}>['ui'] {
|
}: TraversalMetadata): Extract<ThreadItem, {type: 'threadPost'}>['ui'] {
|
||||||
// TODO might be able to simplify this
|
|
||||||
const isReplyAndHasReplies =
|
const isReplyAndHasReplies =
|
||||||
depth > 0 &&
|
depth > 0 &&
|
||||||
repliesCount > 0 &&
|
repliesCount > 0 &&
|
||||||
|
|||||||
Reference in New Issue
Block a user