Clean up script update check
parent
58854ec8f0
commit
b35315eabb
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue