Dismiss set highlight calls for null elements
Summary: ^ Reviewed By: mweststrate Differential Revision: D38238280 fbshipit-source-id: c48d8ff1c69b5c3d535ce050381ba91f1f405937
This commit is contained in:
committed by
Facebook GitHub Bot
parent
2916a5fa52
commit
4da7419b19
@@ -414,6 +414,9 @@ export default class Inspector extends Component<Props, State> {
|
||||
if (!this.props.client.isConnected) {
|
||||
return;
|
||||
}
|
||||
if (key === undefined || key == null) {
|
||||
return;
|
||||
}
|
||||
this.props.client
|
||||
.call(this.call().SET_HIGHLIGHTED, {
|
||||
id: key,
|
||||
|
||||
Reference in New Issue
Block a user