Edition via drag & drop des items
This commit is contained in:
@ -11,7 +11,7 @@ module.exports = React.createClass({
|
||||
mixins: [LazyLoad],
|
||||
|
||||
getInitialState: function() {
|
||||
return { icon: DEFAULT_ICON, currentTheme: undefined };
|
||||
return { icon: DEFAULT_ICON, currentTheme: '' };
|
||||
},
|
||||
|
||||
onInViewport: function() {
|
||||
@ -23,7 +23,7 @@ module.exports = React.createClass({
|
||||
var currentTheme = this.state.currentTheme;
|
||||
var newTheme = this.props.theme;
|
||||
|
||||
if( !this.isInViewport() || newTheme === currentTheme ) return;
|
||||
if( !this.isInViewport() || newTheme === currentTheme ) return;
|
||||
|
||||
this.setState({ icon: LOADING_ICON, currentTheme: newTheme });
|
||||
|
||||
|
Reference in New Issue
Block a user