Partial fixes to jobline upsert & totals calculation. IO-730

This commit is contained in:
Patrick Fic
2021-03-04 15:43:11 -08:00
parent 0d317578b2
commit f7d1ea0a49
5 changed files with 47 additions and 37 deletions

View File

@@ -0,0 +1,6 @@
export default function UndefinedToNull(obj) {
Object.keys(obj).forEach((key) => {
if (obj[key] === undefined) obj[key] = null;
});
return obj;
}