Browse Source

fix: at import barcode type

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/4780/head
mertmit 2 years ago
parent
commit
12b185fc71
  1. 13
      packages/nocodb/src/lib/meta/api/sync/helpers/job.ts

13
packages/nocodb/src/lib/meta/api/sync/helpers/job.ts

@ -246,7 +246,7 @@ export default async (
count: UITypes.Count, count: UITypes.Count,
lookup: UITypes.Lookup, lookup: UITypes.Lookup,
autoNumber: UITypes.AutoNumber, autoNumber: UITypes.AutoNumber,
barcode: UITypes.Barcode, barcode: UITypes.SingleLineText,
button: UITypes.Button, button: UITypes.Button,
}; };
@ -1401,10 +1401,6 @@ export default async (
} else rec[key] = `${value?.name} <${value?.email}>`; } else rec[key] = `${value?.name} <${value?.email}>`;
break; break;
case UITypes.Barcode:
rec[key] = value.text;
break;
case UITypes.Button: case UITypes.Button:
rec[key] = `${value?.label} <${value?.url}>`; rec[key] = `${value?.label} <${value?.url}>`;
break; break;
@ -1473,6 +1469,13 @@ export default async (
} }
break; break;
case UITypes.SingleLineText:
// Barcode data
if (value?.text) {
rec[key] = value.text;
}
break;
default: default:
break; break;
} }

Loading…
Cancel
Save