mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-16 15:45:13 +00:00
Use map.getIn for plugin heading
This commit is contained in:
@@ -4,7 +4,7 @@ const classNames = require('classnames');
|
||||
|
||||
function mapStateToProps({ config }) {
|
||||
return {
|
||||
position: config.get('pluginsConfig').get('headings').get('position') || 'left'
|
||||
position: config.getIn(['pluginsConfig', 'headings', 'position'], 'left')
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user