From 79171e0275b45393cc56f54955c0056920ab2c40 Mon Sep 17 00:00:00 2001 From: bobzel Date: Sun, 11 Apr 2021 12:09:43 -0400 Subject: from last --- src/client/views/LightboxView.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/client/views/LightboxView.tsx b/src/client/views/LightboxView.tsx index 9444446b1..b26765fa7 100644 --- a/src/client/views/LightboxView.tsx +++ b/src/client/views/LightboxView.tsx @@ -188,8 +188,7 @@ export class LightboxView extends React.Component { LightboxView._future?.push(...DocListCast(tours[0][fieldKey]).reverse()); } else { const coll = LightboxView._docTarget; - const doc = LightboxView.LightboxDoc; - if (coll && doc) { + if (coll) { const fieldKey = Doc.LayoutFieldKey(coll); LightboxView.SetLightboxDoc(coll, undefined, [...DocListCast(coll[fieldKey]), ...DocListCast(coll[fieldKey + "-annotations"])]); TabDocView.PinDoc(coll, { hidePresBox: true }); -- cgit v1.2.3-70-g09d2