Skip to content

Commit aa0e5da

Browse files
committed
fix conversion of None custom scalars in refetch variables
1 parent 2282de4 commit aa0e5da

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/rescript-relay/src/utils.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@ function traverse(
7979
continue;
8080
}
8181

82+
if (currentObj[key] && currentObj[key].BS_PRIVATE_NESTED_SOME_NONE >= 0) {
83+
newObj = getNewObj(newObj, currentObj);
84+
newObj[key] = currentObj[key];
85+
continue;
86+
}
87+
8288
var shouldConvertRootObj =
8389
typeof instructions["r"] === "string" &&
8490
fullInstructionMap[instructions["r"]];

0 commit comments

Comments
 (0)