fix: delete pdf worker after switching assets
This commit is contained in:
Родитель
88836362c0
Коммит
9debb7f620
|
@ -159,6 +159,10 @@ export default class Canvas extends React.Component<ICanvasProps, ICanvasState>
|
|||
this.selectedRegionIds = [];
|
||||
this.imageMap.removeAllFeatures();
|
||||
this.imageMap.resetAllLayerVisibility();
|
||||
if (this.state.pdfFile) {
|
||||
await this.state.pdfFile.destroy();
|
||||
}
|
||||
|
||||
this.setState({
|
||||
currentAsset: this.props.selectedAsset,
|
||||
ocr: null,
|
||||
|
|
Загрузка…
Ссылка в новой задаче