Skip to content

Commit

Permalink
fix(HistoryPanel): Improve typesafety by not using any unnecessarily
Browse files Browse the repository at this point in the history
Signed-off-by: Michał Dziekoński <[email protected]>
  • Loading branch information
mdziekon committed Sep 12, 2024
1 parent d6d35c9 commit 5e2b394
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/panels/History/HistoryListEntryJob.vue
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export default class HistoryListPanel extends Mixins(BaseMixin) {
if ((this.item.metadata?.thumbnails?.length ?? 0) < 1) return false
const thumbnail = this.item.metadata?.thumbnails?.find(
(thumb: any) =>
(thumb) =>
thumb.width >= thumbnailSmallMin &&
thumb.width <= thumbnailSmallMax &&
thumb.height >= thumbnailSmallMin &&
Expand All @@ -201,7 +201,7 @@ export default class HistoryListPanel extends Mixins(BaseMixin) {
get bigThumbnail() {
if ((this.item.metadata?.thumbnails?.length ?? 0) < 1) return false
const thumbnail = this.item.metadata?.thumbnails?.find((thumb: any) => thumb.width >= thumbnailBigMin)
const thumbnail = this.item.metadata?.thumbnails?.find((thumb) => thumb.width >= thumbnailBigMin)
return this.createThumbnailUrl(thumbnail)
}
Expand Down

0 comments on commit 5e2b394

Please sign in to comment.