Fix click to add for flux functions
parent
335248c0fd
commit
75afa76c88
|
@ -51,9 +51,13 @@ class FluxScriptEditor extends PureComponent<Props, State> {
|
|||
}
|
||||
}
|
||||
|
||||
public componentDidUpdate(prevProps) {
|
||||
public componentDidUpdate(prevProps: Props) {
|
||||
const {status, visibility} = this.props
|
||||
|
||||
if (prevProps.script !== this.props.script) {
|
||||
this.setState({script: this.props.script})
|
||||
}
|
||||
|
||||
if (status.type === 'error') {
|
||||
this.makeError()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue