diff options
| author | ab <abdullah_ahmed@brown.edu> | 2019-07-11 18:04:09 -0400 |
|---|---|---|
| committer | ab <abdullah_ahmed@brown.edu> | 2019-07-11 18:04:09 -0400 |
| commit | 9f3fd2717bb20ac7b84059e6eb4ad8e58dcc1b92 (patch) | |
| tree | 0b3e26d50af4bd2c9e57ec587c85e543d535dbf4 /src/client/views | |
| parent | 40465c791184762a491e63b6d403e4436b9e228a (diff) | |
started brush
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 |
