mountain-ui 1.0.13 → 1.0.15

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.13",
4
+ "version": "1.0.15",
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",
@@ -30,7 +30,10 @@
30
30
  let newLines = []
31
31
 
32
32
  for (const line of decodedValue) {
33
- newLines.push(createLine(line.id, line))
33
+ const lineId = line.id
34
+ delete line.id
35
+ const newLine = createLine(line.id, line)
36
+ newLines.push(newLine)
34
37
  }
35
38
 
36
39
  table = [...newLines]
@@ -111,7 +114,7 @@
111
114
  handleChange();
112
115
  }}
113
116
  id={row.fieldId}
114
- value={table[lineIndex].ctx[row.fieldId]}
117
+ value={table[lineIndex].ctx?.[row.fieldId] ?? null}
115
118
  ></FieldInput>
116
119
  {/each}
117
120
  {#if columnIndex + 1 === columns.length}