Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor: remove unnecessary changes
  • Loading branch information
USERSATOSHI committed Sep 15, 2025
commit bf5bd8d1993ab3672c18577bfa3623faa89dec14
Original file line number Diff line number Diff line change
Expand Up @@ -235,12 +235,7 @@ export function getPresetValueFromControlValue(
return '0';
}

const slug = presets[ controlValue ]?.slug;
if ( slug === '0' ) {
return '0';
}

return `var:preset|border-radius|${ slug }`;
return `var:preset|border-radius|${ presets[ controlValue ]?.slug }`;
}

/**
Expand All @@ -264,10 +259,6 @@ export function getPresetValueFromCustomValue( value, presets ) {
);

if ( spacingMatch?.slug ) {
if ( spacingMatch.slug === '0' ) {
return '0';
}

return `var:preset|border-radius|${ spacingMatch.slug }`;
}

Expand Down
Loading