Clean up script update check

pull/10616/head
Delmer Reed 2018-06-21 12:43:40 -04:00
parent 58854ec8f0
commit b35315eabb
1 changed files with 2 additions and 5 deletions

View File

@ -37,11 +37,8 @@ class YieldFuncNode extends PureComponent<Props, State> {
this.getData()
}
public componentDidUpdate(prevProps) {
const {script: prevScript} = prevProps
const {script: currentScript} = this.props
if (prevScript !== currentScript) {
public componentDidUpdate(prevProps: Props) {
if (prevProps.script !== this.props.script) {
this.getData()
}
}