fix: add parens to (index ?? -1)
This commit is contained in:
1 file changed
+1
-1
@@ -59,7 +59,7 @@ function findInFeed(
|
|||||||
i => i.post.id == postId,
|
i => i.post.id == postId,
|
||||||
)
|
)
|
||||||
|
|
||||||
if (index ?? -1 == -1) return
|
if ((index ?? -1) == -1) return
|
||||||
|
|
||||||
return {
|
return {
|
||||||
post_view: postFeeds.value[feedId]?.data.posts.posts[index],
|
post_view: postFeeds.value[feedId]?.data.posts.posts[index],
|
||||||
|
|||||||
Reference in new issue
Block a user