lutra 0.0.7 → 0.0.9

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.
@@ -61,7 +61,7 @@ onMount(() => {
61
61
  // `result` is an `ActionResult` object
62
62
  // `update` is a function which triggers the default logic that would be triggered if this callback wasn't set
63
63
  console.log('result', result);
64
- const resultForm = (result as any).data.form;
64
+ const resultForm = result?.data?.form;
65
65
  if(result.type === "success") {
66
66
  if(resultForm) {
67
67
  form.valid = resultForm.valid;
package/dist/form/form.js CHANGED
@@ -80,7 +80,7 @@ export function getFieldsFromSchema(schema, data, parents) {
80
80
  type = type._def.innerType;
81
81
  }
82
82
  else {
83
- type = type._def.innerType;
83
+ type = type._def.innerType ? type._def.innerType : type;
84
84
  }
85
85
  }
86
86
  // Check for min/max/regex checks
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lutra",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "scripts": {
5
5
  "dev": "vite dev --host 0.0.0.0",
6
6
  "props": "node read_props.js",