Remove countdown on Lists
This commit is contained in:
parent
1124125578
commit
15aee9eb4e
1 changed files with 22 additions and 18 deletions
|
@ -88,6 +88,9 @@ function AutoplayCountdown(props: Props) {
|
||||||
|
|
||||||
// Update countdown timer.
|
// Update countdown timer.
|
||||||
React.useEffect(() => {
|
React.useEffect(() => {
|
||||||
|
if (collectionId) {
|
||||||
|
doNavigate();
|
||||||
|
} else {
|
||||||
let interval;
|
let interval;
|
||||||
if (!timerCanceled && nextRecommendedUri) {
|
if (!timerCanceled && nextRecommendedUri) {
|
||||||
if (isTimerPaused) {
|
if (isTimerPaused) {
|
||||||
|
@ -107,7 +110,8 @@ function AutoplayCountdown(props: Props) {
|
||||||
return () => {
|
return () => {
|
||||||
clearInterval(interval);
|
clearInterval(interval);
|
||||||
};
|
};
|
||||||
}, [timer, doNavigate, navigateUrl, push, timerCanceled, isTimerPaused, nextRecommendedUri]);
|
}
|
||||||
|
}, [timer, doNavigate, navigateUrl, push, timerCanceled, isTimerPaused, nextRecommendedUri, collectionId]);
|
||||||
|
|
||||||
if (timerCanceled || !nextRecommendedUri) {
|
if (timerCanceled || !nextRecommendedUri) {
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in a new issue