Skip to content

Commit

Permalink
Fix constant result of expression in PDF helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
Fajfa committed Jan 31, 2025
1 parent 02e30a0 commit b388a33
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/vue/src/components/filePreview/common/types/PDF/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ export class Page {
}

merge ({ index, page, loading, loaded, rendered, failed, node }) {
this.index = index !== undefined ? index : this.index
this.page = page !== undefined ? page : this.page
this.loading = !!loading !== undefined ? loading : this.loading
this.loaded = !!loaded !== undefined ? loaded : this.loaded
this.rendered = !!rendered !== undefined ? rendered : this.rendered
this.failed = !!failed !== undefined ? failed : this.failed
this.node = node !== undefined ? node : this.node
this.index = index || this.index
this.page = page || this.page
this.loading = loading || this.loading
this.loaded = loaded || this.loaded
this.rendered = rendered || this.rendered
this.failed = failed || this.failed
this.node = node || this.node
}
}

Expand Down

0 comments on commit b388a33

Please sign in to comment.