aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/LightboxView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-02-21 19:40:38 -0500
committerbobzel <zzzman@gmail.com>2021-02-21 19:40:38 -0500
commitdcf0389b770b06a04a45b4aedd62bf455d7848e7 (patch)
tree3153b4dd79c61318fe27391943055690b7056b63 /src/client/views/LightboxView.tsx
parent1c1b00e5e164ae82275e03b488a5a81eb1721234 (diff)
fixed compile warnings.
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;