Merge pull request #3745 from influxdata/flux/update-yields-on-script-change
Render data when yield node receives new scriptpull/10616/head
commit
949151d0a2
|
@ -37,6 +37,12 @@ class YieldFuncNode extends PureComponent<Props, State> {
|
|||
this.getData()
|
||||
}
|
||||
|
||||
public componentDidUpdate(prevProps: Props) {
|
||||
if (prevProps.script !== this.props.script) {
|
||||
this.getData()
|
||||
}
|
||||
}
|
||||
|
||||
public render() {
|
||||
const {func} = this.props
|
||||
const {data} = this.state
|
||||
|
|
Loading…
Reference in New Issue