Remove redundant call to getChildContext
The CheckSources component already provedes source to this component and its children.pull/1971/head
parent
c36a78e84c
commit
f4e6e70efe
|
@ -11,10 +11,6 @@ class DataSection extends Component {
|
||||||
super(props)
|
super(props)
|
||||||
}
|
}
|
||||||
|
|
||||||
getChildContext() {
|
|
||||||
return {source: this.props.source}
|
|
||||||
}
|
|
||||||
|
|
||||||
handleChooseNamespace = namespace => {
|
handleChooseNamespace = namespace => {
|
||||||
this.props.actions.chooseNamespace(this.props.query.id, namespace)
|
this.props.actions.chooseNamespace(this.props.query.id, namespace)
|
||||||
}
|
}
|
||||||
|
@ -111,13 +107,4 @@ DataSection.propTypes = {
|
||||||
isKapacitorRule: PropTypes.bool,
|
isKapacitorRule: PropTypes.bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
DataSection.childContextTypes = {
|
|
||||||
source: PropTypes.shape({
|
|
||||||
links: PropTypes.shape({
|
|
||||||
proxy: PropTypes.string.isRequired,
|
|
||||||
self: PropTypes.string.isRequired,
|
|
||||||
}).isRequired,
|
|
||||||
}).isRequired,
|
|
||||||
}
|
|
||||||
|
|
||||||
export default DataSection
|
export default DataSection
|
||||||
|
|
Loading…
Reference in New Issue