Skip to content

Commit

Permalink
refactor: Remove now redundant code from createThumbnailUrl()
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 15, 2024
1 parent 2aa913a commit dd21a70
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/panels/History/HistoryListEntryJob.vue
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,7 @@ export default class HistoryListPanel extends Mixins(BaseMixin) {
relative_url = this.item.filename.substring(0, this.item.filename.lastIndexOf('/') + 1)
}
if ((thumbnail?.relative_path ?? null) === null) return false
return `${this.apiUrl}/server/files/gcodes/${encodeURI(relative_url + thumbnail?.relative_path)}?timestamp=${
return `${this.apiUrl}/server/files/gcodes/${encodeURI(relative_url + thumbnail.relative_path)}?timestamp=${
this.item.metadata.modified
}`
}
Expand Down

0 comments on commit dd21a70

Please sign in to comment.