From 4f00c5bd601ae107adf14ccf1e26ad330189c1c7 Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Fri, 24 May 2024 09:23:29 +0100 Subject: [PATCH] Components: Fix React Warning triggers by the new JSX transform (#61917) Co-authored-by: youknowriad Co-authored-by: ellatrix Co-authored-by: Mamaduka --- .../block-editor/src/components/global-styles/color-panel.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/block-editor/src/components/global-styles/color-panel.js b/packages/block-editor/src/components/global-styles/color-panel.js index baa5a0779cfd05..04d295a0b0320d 100644 --- a/packages/block-editor/src/components/global-styles/color-panel.js +++ b/packages/block-editor/src/components/global-styles/color-panel.js @@ -209,7 +209,7 @@ function ColorPanelDropdown( { panelId, } ) { const currentTab = tabs.find( ( tab ) => tab.userValue !== undefined ); - + const { key: firstTabKey, ...firstTab } = tabs[ 0 ] ?? {}; return ( { tabs.length === 1 && (