Skip to content

Commit

Permalink
Dimensions Panel: Fix resetting of axial spacing controls
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed May 16, 2023
1 parent 744ab2c commit ccb69b6
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,9 @@ function useHasSpacingPresets( settings ) {
}

function filterValuesBySides( values, sides ) {
if ( ! sides ) {
// If no custom side configuration all sides are opted into by default.
// If no custom side configuration, all sides are opted into by default.
// Without any values, we have nothing to filter either.
if ( ! sides || ! values ) {
return values;
}

Expand Down

0 comments on commit ccb69b6

Please sign in to comment.