Update ConnectionLink to reflect current default
parent
9b6263e667
commit
461f71a2fe
|
@ -27,6 +27,14 @@ interface Props {
|
|||
}
|
||||
|
||||
class InfluxTableRow extends PureComponent<Props & WithRouterProps> {
|
||||
private connectionLink: React.RefObject<ConnectionLink> = React.createRef()
|
||||
|
||||
public componentDidUpdate() {
|
||||
if (this.connectionLink.current) {
|
||||
this.connectionLink.current.forceUpdate()
|
||||
}
|
||||
}
|
||||
|
||||
public render() {
|
||||
const {
|
||||
source,
|
||||
|
@ -44,6 +52,7 @@ class InfluxTableRow extends PureComponent<Props & WithRouterProps> {
|
|||
<td>{this.connectButton}</td>
|
||||
<td>
|
||||
<ConnectionLink
|
||||
ref={this.connectionLink}
|
||||
source={source}
|
||||
currentSource={currentSource}
|
||||
toggleWizard={toggleWizard}
|
||||
|
|
|
@ -53,6 +53,7 @@ class ManageSources extends PureComponent<Props, State> {
|
|||
showNewKapacitor: null,
|
||||
}
|
||||
}
|
||||
|
||||
public componentDidMount() {
|
||||
this.props.fetchAllServices(this.props.sources)
|
||||
this.props.sources.forEach(source => {
|
||||
|
|
Loading…
Reference in New Issue