Skip to content

Commit

Permalink
Fix max loop duration not working (#604)
Browse files Browse the repository at this point in the history
  • Loading branch information
WithoutPants authored Jun 10, 2020
1 parent ef8cba8 commit d168df1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/v2.5/src/components/ScenePlayer/ScenePlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit d168df1

Please sign in to comment.