mirror of
https://github.com/mue/mue.git
synced 2026-07-23 16:57:25 +02:00
fix: enable photo map and update, fix welcome error, fix preview
This commit is contained in:
@@ -92,6 +92,13 @@ export default class WelcomeSections extends PureComponent {
|
||||
this.timeout = setTimeout(this.changeWelcomeImg, 3 * 1000);
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
if (this.timeout) {
|
||||
clearTimeout(this.timeout);
|
||||
this.timeout = null;
|
||||
}
|
||||
}
|
||||
|
||||
// cancel welcome image timer if not on welcome tab
|
||||
componentDidUpdate() {
|
||||
if (this.props.currentTab !== 0) {
|
||||
|
||||
Reference in New Issue
Block a user