From 2bbcf50702f34c68d5a7d505dcf65fb253d0a434 Mon Sep 17 00:00:00 2001 From: Alex Lende Date: Wed, 22 May 2024 11:10:15 -0500 Subject: [PATCH] Code cleanup --- .../spacing-sizes-control/hooks/use-spacing-sizes.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/block-editor/src/components/spacing-sizes-control/hooks/use-spacing-sizes.js b/packages/block-editor/src/components/spacing-sizes-control/hooks/use-spacing-sizes.js index bfa63f1f90009d..e361b646de18a9 100644 --- a/packages/block-editor/src/components/spacing-sizes-control/hooks/use-spacing-sizes.js +++ b/packages/block-editor/src/components/spacing-sizes-control/hooks/use-spacing-sizes.js @@ -39,9 +39,9 @@ export default function useSpacingSizes() { const sizesLength = zeroSize.length + - ( customSizes?.length ?? 0 ) + - ( themeSizes?.length ?? 0 ) + - ( defaultSizes?.length ?? 0 ); + customSizes.length + + themeSizes.length + + defaultSizes.length; const maybeUnsetSize = sizesLength > RANGE_CONTROL_MAX_SIZE