From d168df1ad63a810ace3696984bb07d6336ca7ffd Mon Sep 17 00:00:00 2001 From: WithoutPants <53250216+WithoutPants@users.noreply.github.com> Date: Wed, 10 Jun 2020 10:15:02 +1000 Subject: [PATCH] Fix max loop duration not working (#604) --- ui/v2.5/src/components/ScenePlayer/ScenePlayer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/v2.5/src/components/ScenePlayer/ScenePlayer.tsx b/ui/v2.5/src/components/ScenePlayer/ScenePlayer.tsx index c3451f3a2..131ad8043 100644 --- a/ui/v2.5/src/components/ScenePlayer/ScenePlayer.tsx +++ b/ui/v2.5/src/components/ScenePlayer/ScenePlayer.tsx @@ -107,7 +107,7 @@ export class ScenePlayerImpl extends React.Component< } private shouldRepeat(scene: GQL.SceneDataFragment) { - const maxLoopDuration = this.state?.config.maximumLoopDuration ?? 0; + const maxLoopDuration = this.props?.config?.maximumLoopDuration ?? 0; return ( !!scene.file.duration && !!maxLoopDuration &&