Skip to content

Commit dc36679

Browse files
API Base angular 2: Model stringfy now return parameters that are false
1 parent 7b16081 commit dc36679

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ApiBase/model-base.model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function recursiveStringfy(model: any): any {
2222
paramsList = model;
2323
}
2424
for (const key in paramsList) {
25-
if (!model[key]) {
25+
if (model[key] === null || model[key] === undefined) {
2626
continue;
2727
}
2828
const value = model[key];

0 commit comments

Comments
 (0)