ballerina-core 1.0.60 → 1.0.61

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "ballerina-core",
3
3
  "author": "Dr. Giuseppe Maggiore",
4
4
  "private": false,
5
- "version": "1.0.60",
5
+ "version": "1.0.61",
6
6
  "main": "main.ts",
7
7
  "dependencies": {
8
8
  "immutable": "^5.0.0-beta.5",
@@ -127,7 +127,7 @@ export const defaultValue = <T>(types: Map<TypeName, ParsedType<T>>, builtIns: B
127
127
  }
128
128
 
129
129
  if(t.kind == "lookup")
130
- defaultValue(types, builtIns, injectedPrimitives)(types.get(t.name)!)
130
+ return defaultValue(types, builtIns, injectedPrimitives)(types.get(t.name)!)
131
131
 
132
132
  if(t.kind == "form") {
133
133
  let res = {} as any
@@ -155,7 +155,7 @@ export const parseForms =
155
155
  }
156
156
  seen = seen.add(formDef.name)
157
157
  formDef.fields.forEach((field, fieldName) => {
158
- if (field.type.kind == "lookup") {
158
+ if (field.type.kind == "lookup" || field.type.kind == "form") {
159
159
  traverse(formsConfig.forms.get(field.renderer)!)
160
160
  }
161
161
  try {