avoid redbox in handleWrappedEvent

Reviewed By: Hypuk

Differential Revision: D6602420

fbshipit-source-id: 14cf396014d896878032ee4ab67a45700eb6c257
This commit is contained in:
Ben Nham 2017-12-19 10:26:51 -08:00 committed by Facebook Github Bot
parent 2679f3efb6
commit 30da2622e2
1 changed files with 4 additions and 1 deletions

View File

@ -122,7 +122,10 @@ RCT_NOT_IMPLEMENTED(- (instancetype)init)
NSString *wrappedEvent = payload[@"wrappedEvent"]; NSString *wrappedEvent = payload[@"wrappedEvent"];
RCTInspectorLocalConnection *inspectorConnection = _inspectorConnections[pageId]; RCTInspectorLocalConnection *inspectorConnection = _inspectorConnections[pageId];
if (!inspectorConnection) { if (!inspectorConnection) {
RCTLogError(@"Not connected: %@", pageId); RCTLogWarn(
@"Not connected to page: %@ , failed trying to handle event: %@",
pageId,
wrappedEvent);
return; return;
} }
[inspectorConnection sendMessage:wrappedEvent]; [inspectorConnection sendMessage:wrappedEvent];