aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/LightboxView.tsx
diff options
context:
space:
mode:
authorusodhi <61431818+usodhi@users.noreply.github.com>2021-02-22 21:26:10 -0500
committerusodhi <61431818+usodhi@users.noreply.github.com>2021-02-22 21:26:10 -0500
commit3f954b00b8624861386b23bdb75291bd6a260de8 (patch)
tree7bb4674cb48dc02dde800b5ed7edc5658ba53ab4 /src/client/views/LightboxView.tsx
parent0381050cab3cbcf6f1c3552fa86cace3a1654a07 (diff)
parentf22163e9e4118df3faf06afc28045b84615fba0d (diff)
merging
Diffstat (limited to 'src/client/views/LightboxView.tsx')
-rw-r--r--src/client/views/LightboxView.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/LightboxView.tsx b/src/client/views/LightboxView.tsx
index 5e810d335..e967a5b07 100644
--- a/src/client/views/LightboxView.tsx
+++ b/src/client/views/LightboxView.tsx
@@ -148,7 +148,7 @@ export class LightboxView extends React.Component<LightboxViewProps> {
LightboxView.SetLightboxDoc(undefined);
return;
}
- const { doc, target } = LightboxView._history?.lastElement()!;
+ const { doc, target } = LightboxView._history?.lastElement();
const docView = target && DocumentManager.Instance.getLightboxDocumentView(target);
if (docView && target) {
LightboxView._doc = doc;