Skip to content

Commit eddea87

Browse files
authored
fix(component): handle falsy conditionals
Allows using `false` for `ui:if`
1 parent 206a8cb commit eddea87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/forms/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ const applyConditionsReducer =
8888
if (
8989
filter(propUi['ui:if'], (predicate, k) => {
9090
const value = get(data, k);
91-
return predicate && predicate !== value;
91+
return predicate !== value;
9292
}).length === 0
9393
) {
9494
Object.assign(acc, curr);

0 commit comments

Comments
 (0)