Handle record attributes with null values

This commit is contained in:
Prathamesh Musale 2024-02-08 10:40:40 +05:30
parent 809c4d8f5b
commit 43a7061ffe

View File

@ -79,7 +79,7 @@ export class Util {
const res: {[key: string]: any} = {}; const res: {[key: string]: any} = {};
attributes.forEach(attr => { attributes.forEach(attr => {
res[attr.key] = this.fromGQLValue(attr.value); res[attr.key] = (attr.value === null) ? null : this.fromGQLValue(attr.value);
}); });
return res; return res;