aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2022-09-12 09:33:25 -0400
committerbobzel <zzzman@gmail.com>2022-09-12 09:33:25 -0400
commit3993c034210f13e95717a3d417323e14bd8417b9 (patch)
treeb88245265c23a8b8792743ca357108dee83d2c75 /src
parenta0b595c00111404e9a4fb6b9a926ef22c6e2979b (diff)
fixed lightbox exception when no media is playing
Diffstat (limited to 'src')
-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 d5f5dabb6..25354a09d 100644
--- a/src/client/views/LightboxView.tsx
+++ b/src/client/views/LightboxView.tsx
@@ -57,7 +57,7 @@ export class LightboxView extends React.Component<LightboxViewProps> {
const l = DocUtils.MakeLinkToActiveAudio(() => doc).lastElement();
l && (Cast(l.anchor2, Doc, null).backgroundColor = 'lightgreen');
}
- CollectionStackedTimeline.CurrentlyPlaying.forEach(doc => {
+ CollectionStackedTimeline.CurrentlyPlaying?.forEach(doc => {
DocumentManager.Instance.getAllDocumentViews(doc).forEach(dv => {
dv.ComponentView?.Pause?.();
});