@malloydata/malloy-interfaces 0.0.284 → 0.0.285
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/nest_unions.js +1 -1
- package/package.json +1 -1
package/dist/nest_unions.js
CHANGED
|
@@ -112,7 +112,7 @@ function convertFromThrift(obj, type) {
|
|
|
112
112
|
const typeDefinition = getType(type);
|
|
113
113
|
if (typeDefinition.type === 'union') {
|
|
114
114
|
for (const kind in typeDefinition.options) {
|
|
115
|
-
if (obj[kind] !== undefined) {
|
|
115
|
+
if (obj[kind] !== undefined && obj[kind] !== null) {
|
|
116
116
|
const result = convertFromThrift(obj[kind], typeDefinition.options[kind]);
|
|
117
117
|
if (typeof result === 'object') {
|
|
118
118
|
return {
|