xlsx-template-browser 0.1.3 → 0.1.4
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/lib/main.js +1 -1
- package/package.json +1 -1
package/lib/main.js
CHANGED
|
@@ -145,7 +145,7 @@ const replace = async (template, data) => {
|
|
|
145
145
|
}
|
|
146
146
|
// If the value is an array (not from table), then extend the existing list of cells
|
|
147
147
|
for (let i = 0; i < newValue.length; i++) {
|
|
148
|
-
let { value, cellType } = newValue[i]
|
|
148
|
+
let { value, cellType } = newValue[i] || {}
|
|
149
149
|
if (cellType === 's' && typeof value === 'string') value = addString(value)
|
|
150
150
|
newCells[newIndex + i] = Object.assign({}, { value, cellType }, { template: c })
|
|
151
151
|
if (i) cellOffset++
|
package/package.json
CHANGED