Skip to content

Commit

Permalink
use array index instead of first()
Browse files Browse the repository at this point in the history
Co-authored-by: absidue <[email protected]>
  • Loading branch information
ChunkyProgrammer and absidue authored Jan 27, 2025
1 parent 89d89d5 commit 8f33321
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/helpers/api/local.js
Original file line number Diff line number Diff line change
Expand Up @@ -1703,7 +1703,7 @@ export async function getLocalCommunityPost(postId, channelId) {
}

const postPage = await innertube.getPost(postId, channelId)
return parseLocalCommunityPost(postPage.posts.first())
return parseLocalCommunityPost(postPage.posts[0])
}

/**
Expand Down

0 comments on commit 8f33321

Please sign in to comment.