Skip to content
This repository was archived by the owner on Nov 21, 2020. It is now read-only.

Commit ee9424d

Browse files
khangaridbBattulga BatAmar
authored andcommitted
Fixed undefind string of importing coc (#459)
1 parent 53e8e41 commit ee9424d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/workers/bulkInsert.worker.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ connect().then(async () => {
5454

5555
// Iterating through detailed properties
5656
for (const property of properties) {
57+
const value = fieldValue[colIndex] || '';
58+
5759
switch (property.type) {
5860
case 'customProperty':
5961
{
@@ -63,15 +65,13 @@ connect().then(async () => {
6365

6466
case 'customData':
6567
{
66-
const value = fieldValue[colIndex].toString();
67-
coc[property.name] = value;
68+
coc[property.name] = value.toString();
6869
}
6970
break;
7071

7172
case 'basic':
7273
{
73-
const value = fieldValue[colIndex];
74-
coc[property.name] = value;
74+
coc[property.name] = value.toString();
7575

7676
if (property.name === 'primaryEmail' && value) {
7777
coc.emails = [value];

0 commit comments

Comments
 (0)