Browse Source

fix: typo accessing variable

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
sync
Raju Udava 3 years ago
parent
commit
4927d76991
  1. 8
      packages/nocodb/tests/sync/sync.js

8
packages/nocodb/tests/sync/sync.js

@ -33,12 +33,12 @@ async function addToMappingTbl(aTblId, ncId, ncName) {
// get NcID from airtable ID
function getNcIdFromAtId(aId) {
return aTblNcMappingTbl[`aId`]?.ncId
return aTblNcMappingTbl[aId]?.ncId
}
// get nc-title from airtable ID
function getNcNameFromAtId(aId) {
return aTblNcMappingTbl[`aId`]?.ncName
return aTblNcMappingTbl[aId]?.ncName
}
///////////////////////////////////////////////////////////////////////////////
@ -589,8 +589,8 @@ async function nocoCreateLookups(aTblSchema) {
fk_lookup_column_id: ncLookupColumnId
});
let ncId = lookupColumn.columns.find(x => x.title === aTblColumns[i].name)?.id
await addToMappingTbl(aTblColumns[i].id, ncId, aTblColumns[i].name)
let ncId = lookupColumn.columns.find(x => x.title === nestedLookupTbl[i].name)?.id
await addToMappingTbl(nestedLookupTbl[i].id, ncId, nestedLookupTbl[i].name)
// remove entry
nestedLookupTbl.splice(i, 1)

Loading…
Cancel
Save