Merge pull request #2426 from iltabe/gt/2425-object-sender-zeros

fix: object-sender, allows empty strings and zeros props to be serialized
This commit is contained in:
Dimitrie Stefanescu
2024-06-24 10:51:44 +01:00
committed by GitHub
@@ -53,7 +53,7 @@ export class Serializer implements IDisposable {
for (const propKey in obj) {
const value = obj[propKey]
// 0. skip some props
if (!value || propKey === 'id' || propKey.startsWith('_')) continue
if (value === undefined || propKey === 'id' || propKey.startsWith('_')) continue
// 1. primitives (numbers, bools, strings)
if (typeof value !== 'object') {