From 051b23f3434627c7989cd36622172c8d4f444135 Mon Sep 17 00:00:00 2001 From: ramonjd Date: Thu, 17 Nov 2022 15:52:04 +1100 Subject: [PATCH] React Hook useCallback had a missing dependency: 'elements'. --- packages/components/src/palette-edit/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/components/src/palette-edit/index.js b/packages/components/src/palette-edit/index.js index 8cd4187e464071..5beccbeebfb85a 100644 --- a/packages/components/src/palette-edit/index.js +++ b/packages/components/src/palette-edit/index.js @@ -341,7 +341,7 @@ export default function PaletteEdit( { setIsEditing( true ); } }, - [ isGradient ] + [ isGradient, elements ] ); return (