Skip to content

Commit

Permalink
fix logic error
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasbenedetto committed Feb 15, 2024
1 parent d9c2026 commit 886828d
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,7 @@ export default function BorderPanel( {
// Shadow
const shadow = decodeValue( inheritedValue?.shadow );
const shadowPresets = settings?.shadow?.presets ?? {};
const overriddenShadowPresets = shadowPresets
? overrideOrigins( shadowPresets )
: [];
const overriddenShadowPresets = overrideOrigins( shadowPresets ) ?? [];
const setShadow = ( newValue ) => {
const slug = overriddenShadowPresets?.find(
( { shadow: shadowName } ) => shadowName === newValue
Expand Down

0 comments on commit 886828d

Please sign in to comment.