Skip to content

Commit

Permalink
Merge pull request #1557 from tomusborne/fix/shape-location-shortcuts…
Browse files Browse the repository at this point in the history
…-displaying

Fix: Shape location shortcuts always showing
  • Loading branch information
tomusborne authored Dec 3, 2024
2 parents 1c9f252 + 62bce9d commit 13cc016
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/blocks/shape/components/ShapeDividerControls.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ export function ShapeDividerControls( { getStyleValue, onStyleChange } ) {
return scaleValue.includes( '-1, 1' );
}, [ currentTransformsValue, locationValue ] );

if ( ! locationValue ) {
return null;
}

return (
<>
<SelectControl
Expand Down

0 comments on commit 13cc016

Please sign in to comment.