Skip to content

Commit ede184b

Browse files
committed
fixup! Fix layout context prop resolving for boolean types (#567)
1 parent 98684d1 commit ede184b

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
export const resolveContextOrProp = (contextValue, propValue) => {
2-
if (contextValue === false) {
2+
if (contextValue === false || contextValue === null) {
33
return propValue;
44
}
55

6-
if (contextValue != null) {
7-
return contextValue;
8-
}
9-
10-
return propValue;
6+
return contextValue;
117
};

0 commit comments

Comments
 (0)