From a7a7d4e6964175c919624cb284327b823eaff60e Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Wed, 1 Jun 2022 11:12:37 +0530 Subject: [PATCH] fix: attachment conditional inclusion error Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- packages/nocodb/src/lib/noco/meta/api/sync/helpers/job.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nocodb/src/lib/noco/meta/api/sync/helpers/job.ts b/packages/nocodb/src/lib/noco/meta/api/sync/helpers/job.ts index be5a1239dc..35eba75510 100644 --- a/packages/nocodb/src/lib/noco/meta/api/sync/helpers/job.ts +++ b/packages/nocodb/src/lib/noco/meta/api/sync/helpers/job.ts @@ -1366,7 +1366,7 @@ export default async ( break; case UITypes.Attachment: - if (syncDB.options.syncLookup) rec[key] = null; + if (!syncDB.options.syncAttachment) rec[key] = null; else { const tempArr = []; for (const v of value) {