Skip to content
This repository was archived by the owner on Feb 19, 2025. It is now read-only.

Commit 9bb845c

Browse files
committed
Added additional clear just in case
1 parent 9babec5 commit 9bb845c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/PDFViewer.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ class PDFViewer extends React.Component<InputProps, ViewerState> {
264264
if (this.state.wvInstance) {
265265
// Disposing WV events
266266
this.state.wvInstance.UI.dispose();
267+
this.setState({ wvInstance: undefined });
267268
}
268269
}
269270
render(): ReactNode {

0 commit comments

Comments
 (0)