diff options
author | srichman333 <sarah_n_richman@brown.edu> | 2024-01-29 14:12:02 -0500 |
---|---|---|
committer | srichman333 <sarah_n_richman@brown.edu> | 2024-01-29 14:12:02 -0500 |
commit | 04d0021899a07ec877d470e914cabbd0897cccea (patch) | |
tree | 6bdae15eab149f671c8f491618be6f249eb7cec6 /src/client/views/nodes/DocumentIcon.tsx | |
parent | d252886fe97524603ee49e577a535a39f1e664ae (diff) | |
parent | 1a32884f5084d9c39190e44bd9331e94590322e5 (diff) |
merge
Diffstat (limited to 'src/client/views/nodes/DocumentIcon.tsx')
-rw-r--r-- | src/client/views/nodes/DocumentIcon.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/DocumentIcon.tsx b/src/client/views/nodes/DocumentIcon.tsx index dfd610581..4a22766cc 100644 --- a/src/client/views/nodes/DocumentIcon.tsx +++ b/src/client/views/nodes/DocumentIcon.tsx @@ -25,11 +25,11 @@ export class DocumentIcon extends ObservableReactComponent<DocumentIconProps> { } static get DocViews() { - return LightboxView.LightboxDoc ? DocumentManager.Instance.DocumentViews.filter(v => LightboxView.IsLightboxDocView(v._props.docViewPath())) : DocumentManager.Instance.DocumentViews; + return LightboxView.LightboxDoc ? DocumentManager.Instance.DocumentViews.filter(v => LightboxView.Contains(v)) : DocumentManager.Instance.DocumentViews; } render() { const view = this._props.view; - const { left, top, right, bottom } = view.getBounds() || { left: 0, top: 0, right: 0, bottom: 0 }; + const { left, top, right, bottom } = view.getBounds || { left: 0, top: 0, right: 0, bottom: 0 }; return ( <div |