diff options
Diffstat (limited to 'src/client/views')
| -rw-r--r-- | src/client/views/search/SearchItem.tsx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client/views/search/SearchItem.tsx b/src/client/views/search/SearchItem.tsx index c5a75eee1..2b8d3eda3 100644 --- a/src/client/views/search/SearchItem.tsx +++ b/src/client/views/search/SearchItem.tsx @@ -171,6 +171,12 @@ export class SearchItem extends React.Component<SearchItemProps> { return [(bounds.x + bounds.r) / 2, (bounds.y + bounds.b) / 2, Number(SEARCH_THUMBNAIL_SIZE) / Math.max((bounds.b - bounds.y), (bounds.r - bounds.x)), this._displayDim]; } + componentWillUnmount() { + if (this._previewDoc) { + DocServer.DeleteDocument(this._previewDoc[Id]); + } + } + //@computed @action |
