mountain-ui 1.0.14 → 1.0.16

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mountain-ui",
3
3
  "private": false,
4
- "version": "1.0.14",
4
+ "version": "1.0.16",
5
5
  "description": "A comprehensive UI component library for ERP systems with field types, entities, and registry management built with Svelte",
6
6
  "type": "module",
7
7
  "module": "index.js",
@@ -69,10 +69,15 @@
69
69
  ...line.ctx,
70
70
  }
71
71
 
72
- if (line.dbId) data['id'] = line.dbId
72
+ if (line.dbId != null) {
73
+ data.id = line.dbId
74
+ }
73
75
 
74
76
  return data
75
77
  } ));
78
+ console.log(table);
79
+ console.log(value);
80
+
76
81
 
77
82
  onChange(value);
78
83
  }
@@ -114,7 +119,7 @@
114
119
  handleChange();
115
120
  }}
116
121
  id={row.fieldId}
117
- value={table[lineIndex].ctx[row.fieldId]}
122
+ value={table[lineIndex].ctx?.[row.fieldId] ?? null}
118
123
  ></FieldInput>
119
124
  {/each}
120
125
  {#if columnIndex + 1 === columns.length}