Fix max loop duration not working (#604)

This commit is contained in:
WithoutPants
2020-06-10 10:15:02 +10:00
committed by GitHub
parent ef8cba804f
commit d168df1ad6

View File

@@ -107,7 +107,7 @@ export class ScenePlayerImpl extends React.Component<
} }
private shouldRepeat(scene: GQL.SceneDataFragment) { private shouldRepeat(scene: GQL.SceneDataFragment) {
const maxLoopDuration = this.state?.config.maximumLoopDuration ?? 0; const maxLoopDuration = this.props?.config?.maximumLoopDuration ?? 0;
return ( return (
!!scene.file.duration && !!scene.file.duration &&
!!maxLoopDuration && !!maxLoopDuration &&