Dismiss set highlight calls for null elements

Summary: ^

Reviewed By: mweststrate

Differential Revision: D38238280

fbshipit-source-id: c48d8ff1c69b5c3d535ce050381ba91f1f405937
This commit is contained in:
Lorenzo Blasa
2022-07-28 08:00:10 -07:00
committed by Facebook GitHub Bot
parent 2916a5fa52
commit 4da7419b19

View File

@@ -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,