From d48fbd8e50c8ae6203a8ce92aa5a98aa64160ca1 Mon Sep 17 00:00:00 2001 From: Anton Nikolaev Date: Wed, 22 Dec 2021 15:33:08 -0800 Subject: [PATCH] Logs: cleaned up warnings because of duplicate keys in context menu Summary: In dev build there were tons of warnings on opening table context menu, because some items had same keys. This diff fixes that by differentiating item keys. Reviewed By: mweststrate Differential Revision: D33277520 fbshipit-source-id: aca2fa2f1163a2b6782be0ca4c5baebdecc5acd5 --- .../flipper-plugin/src/ui/data-table/TableContextMenu.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/desktop/flipper-plugin/src/ui/data-table/TableContextMenu.tsx b/desktop/flipper-plugin/src/ui/data-table/TableContextMenu.tsx index 77f1ebcbb..5f78a4dc7 100644 --- a/desktop/flipper-plugin/src/ui/data-table/TableContextMenu.tsx +++ b/desktop/flipper-plugin/src/ui/data-table/TableContextMenu.tsx @@ -111,7 +111,7 @@ export function tableContextMenuFactory( {lib.isFB && ( { const items = getSelectedItems(datasource, selection); @@ -131,7 +131,7 @@ export function tableContextMenuFactory( disabled={!hasSelection}> {visibleColumns.map((column, idx) => ( { const items = getSelectedItems(datasource, selection); if (items.length) { @@ -147,7 +147,7 @@ export function tableContextMenuFactory( {columns.map((column, idx) => ( - + {