Skip to content

Commit

Permalink
Removed 'imageBase64' from link. It always causes 431 errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCoder committed Dec 1, 2023
1 parent 6bde59f commit b8c0a25
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1384,6 +1384,8 @@ BookLibService.Borrow(id) {
}

render() {
// remove field imageBase64 from currentItem and save it to a local variable as a copy
const { imageBase64, ...currentItem } = this.state.currentItem;
return (
<div>
<div class={clsx('main-container', this.isEmbed && 'embed-app')}>
Expand Down Expand Up @@ -1411,7 +1413,7 @@ BookLibService.Borrow(id) {
title={this.searchParams.get('title')}
link={
`/?code=${JSON.stringify(
this.state.currentItem || ''
currentItem
)}&title=${this.searchParams.get('title')}` || ''
}
/>
Expand Down

0 comments on commit b8c0a25

Please sign in to comment.