Skip to content

Commit

Permalink
fix: fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Jun 22, 2022
1 parent d7f697b commit 3d79e34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/space/src/use-space.ts
Expand Up @@ -56,7 +56,7 @@ export function useSpace(props: SpaceProps) {
if (isNumber(size)) {
val = size
} else {
val = SIZE_MAP[size || 'small']
val = SIZE_MAP[size || 'small'] || SIZE_MAP['small']
}

if ((wrap || fill) && dir === 'horizontal') {
Expand Down

0 comments on commit 3d79e34

Please sign in to comment.