Skip to content

Commit a6fe134

Browse files
author
The Ult
committed
fix(angular): treat falsy defaults as present in prop partitioning
Use a nullish check (== null) instead of a truthiness check when deciding whether a required non-body prop has no default value.
1 parent e684a65 commit a6fe134

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/angular/src/http-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ const partitionPropsForMultiContent = (
8989
for (const p of props) {
9090
if (p.type === GetterPropType.BODY) {
9191
body.push(p);
92-
} else if (p.required && !p.default) {
92+
} else if (p.required && p.default == null) {
9393
requiredNonBody.push(p);
9494
} else {
9595
optionalNonBody.push(p);

0 commit comments

Comments
 (0)