fix wrongly showing insular instance callout
This commit is contained in:
parent
64e55c54a1
commit
c4e925fdb4
|
@ -118,8 +118,10 @@ class InstanceScreenImpl extends React.PureComponent<IInstanceScreenProps, IInst
|
|||
this.processEdgesToFindNeighbors();
|
||||
}
|
||||
|
||||
public componentDidUpdate(prevProps: IInstanceScreenProps, prevState: IInstanceScreenState) {
|
||||
if (prevProps.instanceName !== this.props.instanceName) {
|
||||
public componentDidUpdate(prevProps: IInstanceScreenProps) {
|
||||
const isNewInstance = prevProps.instanceName !== this.props.instanceName;
|
||||
const receivedNewEdges = !!this.props.graph && !this.state.isProcessingNeighbors && !this.state.neighbors;
|
||||
if (isNewInstance || receivedNewEdges) {
|
||||
this.processEdgesToFindNeighbors();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue