forked from cerc-io/registry-sdk
Handle record attributes with null values (#56)
Part of cerc-io/laconicd#144 Reviewed-on: cerc-io/laconic-sdk#56 Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com> Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
This commit is contained in:
+1
-1
@@ -79,7 +79,7 @@ export class Util {
|
||||
const res: {[key: string]: any} = {};
|
||||
|
||||
attributes.forEach(attr => {
|
||||
res[attr.key] = this.fromGQLValue(attr.value);
|
||||
res[attr.key] = (attr.value === null) ? null : this.fromGQLValue(attr.value);
|
||||
});
|
||||
|
||||
return res;
|
||||
|
||||
Reference in New Issue
Block a user