diff options
author | bobzel <zzzman@gmail.com> | 2021-04-11 12:09:43 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-04-11 12:09:43 -0400 |
commit | 79171e0275b45393cc56f54955c0056920ab2c40 (patch) | |
tree | ed6b2cebe40beb2e9623034f667921d96a2aaf96 /src | |
parent | 9669ebd0c0e76bbfbbc898e8b379cff41b1031ed (diff) |
from last
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/LightboxView.tsx | 3 |
1 files changed, 1 insertions, 2 deletions
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<LightboxViewProps> { 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 }); |