From d9c8dbf4046bef221b08212f9b32e6ea13410ef9 Mon Sep 17 00:00:00 2001 From: Luke De Feo Date: Wed, 19 Jul 2023 08:58:20 -0700 Subject: [PATCH] Fix react error Summary: It was complaining about no key for items in a list Reviewed By: antonk52 Differential Revision: D47396639 fbshipit-source-id: c3d5cb7205dbe1c343d109e22f43e5756a071119 --- desktop/plugins/public/ui-debugger/components/Tree.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/desktop/plugins/public/ui-debugger/components/Tree.tsx b/desktop/plugins/public/ui-debugger/components/Tree.tsx index 3dbfa1b92..d43a2300c 100644 --- a/desktop/plugins/public/ui-debugger/components/Tree.tsx +++ b/desktop/plugins/public/ui-debugger/components/Tree.tsx @@ -533,7 +533,9 @@ const ContextMenu: React.FC<{ )), ); - copyItems.push(); + copyItems.push( + , + ); } const focus = hoveredNode != null && focusedNodeId !== hoveredNodeId && @@ -570,7 +572,7 @@ const ContextMenu: React.FC<{ {removeFocus} {(focus || removeFocus) && } {copyItems} - {hoveredNode && } + {hoveredNode && } )} trigger={['contextMenu']}>