add shared widget getter for widgetFor and widgetsFor

This commit is contained in:
Shawn Erquhart
2017-03-06 15:22:40 -05:00
parent 9bc80ed5e4
commit e48221a04f
2 changed files with 20 additions and 26 deletions

View File

@ -101,7 +101,7 @@
h('dd', {}, this.props.widgetsFor('posts').getIn(['widgets', 'front_limit']) || 0),
h('dt', {}, 'Default Author'),
h('dd', {}, this.props.widgetsFor('posts').getIn(['data', 'front_limit']) || 'None'),
h('dd', {}, this.props.widgetsFor('posts').getIn(['data', 'author']) || 'None'),
h('dt', {}, 'Default Thumbnail'),
h('dd', {}, thumb && h('img', {src: this.props.getAsset(thumb).toString()}))