Fix some types
This commit is contained in:
parent
2ad0d059ac
commit
41fd6eb95b
3 changed files with 4 additions and 3 deletions
|
@ -239,7 +239,8 @@ export function* findAllPostsInQueryData(
|
|||
if (item.uri === uri) {
|
||||
yield item
|
||||
}
|
||||
const quotedPost = getEmbeddedPost(item.post.embed)
|
||||
const quotedPost =
|
||||
item.type === 'post' ? getEmbeddedPost(item.post.embed) : undefined
|
||||
if (quotedPost?.uri === uri) {
|
||||
yield embedViewRecordToPlaceholderThread(quotedPost)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue