panel: don't set init value if no tabs

This commit is contained in:
jean-emmanuel 2017-07-13 12:36:02 +02:00
parent 48db726f98
commit 9ca910d1a1

View file

@ -85,6 +85,8 @@ module.exports = class Panel extends _widgets_base {
this.createNavigation()
})
this.setValue(this.getProp('value') || 0)
} else if (this.getProp('widgets') && this.getProp('widgets').length) {
parsewidgets(this.getProp('widgets'), this.widget, this)
@ -93,7 +95,6 @@ module.exports = class Panel extends _widgets_base {
}
this.setValue(this.getProp('value') || 0)
}