Skip to content

Commit b8c0a25

Browse files
committed
Removed 'imageBase64' from link. It always causes 431 errors.
1 parent 6bde59f commit b8c0a25

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/app.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1384,6 +1384,8 @@ BookLibService.Borrow(id) {
13841384
}
13851385

13861386
render() {
1387+
// remove field imageBase64 from currentItem and save it to a local variable as a copy
1388+
const { imageBase64, ...currentItem } = this.state.currentItem;
13871389
return (
13881390
<div>
13891391
<div class={clsx('main-container', this.isEmbed && 'embed-app')}>
@@ -1411,7 +1413,7 @@ BookLibService.Borrow(id) {
14111413
title={this.searchParams.get('title')}
14121414
link={
14131415
`/?code=${JSON.stringify(
1414-
this.state.currentItem || ''
1416+
currentItem
14151417
)}&title=${this.searchParams.get('title')}` || ''
14161418
}
14171419
/>

0 commit comments

Comments
 (0)