Skip to content

Commit 78ce09c

Browse files
committed
fix(connect-explorer): allow passing false value to optional fields
1 parent d4d0f0a commit 78ce09c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/connect-explorer/src/reducers/methodCommon.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ export const getParam = (field: FieldBasic<any>, $params: Record<string, any> =
3535
if (field.omit) {
3636
return params;
3737
}
38-
if (field.optional && ((!field.value && field.value !== 0) || field.value === '')) {
38+
if (
39+
field.optional &&
40+
((!field.value && field.value !== 0 && field.value !== false) || field.value === '')
41+
) {
3942
return params;
4043
}
4144

0 commit comments

Comments
 (0)