Remove yield nodes not in declarations
Co-authored-by: Iris Scholten <ischolten.is@gmail.com>pull/10616/head
parent
b33455e799
commit
280ea0732b
|
@ -549,7 +549,9 @@ export class FluxPage extends PureComponent<Props, State> {
|
||||||
return `${declaration.name} = ${this.formatLastSource(s, isLast)}`
|
return `${declaration.name} = ${this.formatLastSource(s, isLast)}`
|
||||||
}
|
}
|
||||||
|
|
||||||
const funcs = body.funcs.filter(f => f.id !== funcID)
|
const funcs = body.funcs.filter(
|
||||||
|
f => f.id !== funcID && f.id !== yieldNodeID
|
||||||
|
)
|
||||||
const source = this.funcsToSource(funcs)
|
const source = this.funcsToSource(funcs)
|
||||||
return this.formatLastSource(source, isLast)
|
return this.formatLastSource(source, isLast)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue