Skip to content

Commit

Permalink
Dont decode null values
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilJ96 committed Aug 10, 2022
1 parent f3fa270 commit ec0ec91
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/TreeToTS/functions/generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,9 @@ export const traverseResponse = ({
if (Array.isArray(o)) {
return o.map((eachO) => ibb(k, eachO, p));
}
if (o == null) {
return o;
}
const scalarPathString = p.join(SEPARATOR);
const currentScalarString = scalarPaths[scalarPathString];
if (currentScalarString) {
Expand Down
3 changes: 3 additions & 0 deletions src/TreeToTS/functions/new/decodeScalarsInResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ export const traverseResponse = ({
if (Array.isArray(o)) {
return o.map((eachO) => ibb(k, eachO, p));
}
if (o == null) {
return o;
}
const scalarPathString = p.join(SEPARATOR);
const currentScalarString = scalarPaths[scalarPathString];
if (currentScalarString) {
Expand Down

0 comments on commit ec0ec91

Please sign in to comment.