diff --git a/client/coral-framework/components/Slot.js b/client/coral-framework/components/Slot.js index b08484353..eac90c6df 100644 --- a/client/coral-framework/components/Slot.js +++ b/client/coral-framework/components/Slot.js @@ -4,11 +4,10 @@ import styles from './Slot.css'; import {connect} from 'react-redux'; import {getSlotElements} from 'coral-framework/helpers/plugins'; -function Slot ({fill, inline = false, config: {plugin_config = {}}, ...rest}) { - const {debug} = plugin_config; +function Slot ({fill, inline = false, plugin_config: {debug, config}, ...rest}) { return (
- {getSlotElements(fill, rest)} + {getSlotElements(fill, {config, ...rest})}
); } @@ -17,7 +16,7 @@ Slot.propTypes = { fill: React.PropTypes.string }; -const mapStateToProps = ({config}) => ({config}); +const mapStateToProps = ({config: {plugin_config = {}}}) => ({plugin_config}); export default connect(mapStateToProps, null)(Slot);