Skip to content

Commit

Permalink
fix: directionSize size cause error when size is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
MellowCo committed May 17, 2024
1 parent 9a623bd commit 4168383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function directionSize(propertyPrefix: string): DynamicMatcher {
if (v != null) {
return directionMap[direction].map(i => [`${propertyPrefix}${i}`, v])
}
else if (size.startsWith('-')) {
else if (size?.startsWith('-')) {
// --custom-spacing-value
const v = theme.spacing?.[size.slice(1)]
if (v != null)
Expand Down

0 comments on commit 4168383

Please sign in to comment.