Back out "Fix the crash in the watch tab"

Summary: This resolves a crash related to the contents of certain CKComponents, which was apparently introduced by D15266478

Differential Revision: D15406260

fbshipit-source-id: efd1ad1a1bcb41451c56b74c240ad2dca069deb0
This commit is contained in:
Jonathan Ballerano
2019-05-17 22:38:49 -07:00
committed by Facebook Github Bot
parent 7823389081
commit bcc05296ef

View File

@@ -86,7 +86,7 @@
- (id)childForNode:(SKComponentLayoutWrapper *)node atIndex:(NSUInteger)index {
if (node.children.size() == 0) {
return nil;
return node.component.viewContext.view;
}
return node.children[index];
}