File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -102,10 +102,10 @@ export function spacing(
102
102
"bottom" : topBottom
103
103
} ;
104
104
} ) ( ) ,
105
- ...( params . top === undefined ? undefined : { "top" : params . top } ) ,
106
- ...( params . right === undefined ? undefined : { "right" : params . right } ) ,
107
- ...( params . bottom === undefined ? undefined : { "bottom" : params . bottom } ) ,
108
- ...( params . left === undefined ? undefined : { "left" : params . left } )
105
+ ...( params . top !== undefined && { "top" : params . top } ) ,
106
+ ...( params . right !== undefined && { "right" : params . right } ) ,
107
+ ...( params . bottom !== undefined && { "bottom" : params . bottom } ) ,
108
+ ...( params . left !== undefined && { "left" : params . left } )
109
109
} ;
110
110
111
111
( [ "top" , "right" , "bottom" , "left" ] as const ) . forEach ( p => {
You can’t perform that action at this time.
0 commit comments