Skip to content

Commit

Permalink
Fix linter warning
Browse files Browse the repository at this point in the history
  • Loading branch information
neobooru committed Jul 10, 2024
1 parent cae923b commit 76a4c01
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/popup/pages/PopupMain.vue
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,9 @@ async function loadTagCounts() {
if (resp) {
for (let post of pop.posts)
for (let tag of resp.results) {
post.tags
.find(postTag => tag.names.includes(postTag.name))
.usages = tag.usages;
// @ts-expect-error .find() can't return undefined because the resp.results list can only contain
// the tags which we requested. And we only request the tags which are already set on the post.
post.tags.find((postTag) => tag.names.includes(postTag.name)).usages = tag.usages;
}
}
}
Expand Down

0 comments on commit 76a4c01

Please sign in to comment.