Open
Description
Hi,
I'm checking if any of properties in object contains '' (empty string) and i'm trying to override it with null value.
for (let key in row.currentData) {
if ((!row.currentData[key]) || (row.currentData[key] && (row.currentData[key].toString().trim() === '') {
row.currentData[key] = null;
}
}
but after all, when I debug row.currentData selected property still has value: '' instead of null. What's wrong?
Metadata
Metadata
Assignees
Labels
No labels