From a06409ca256d8ecbadcf5a8e0cb1fb83f999f523 Mon Sep 17 00:00:00 2001 From: mschipperheyn Date: Thu, 18 Apr 2024 09:23:05 -0300 Subject: [PATCH] fix asset importer assigns asset on default channel when importing on non default channel --- packages/core/src/data-import/providers/populator/populator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/data-import/providers/populator/populator.ts b/packages/core/src/data-import/providers/populator/populator.ts index 4982ec9889..e389cec936 100644 --- a/packages/core/src/data-import/providers/populator/populator.ts +++ b/packages/core/src/data-import/providers/populator/populator.ts @@ -125,7 +125,7 @@ export class Populator { for (const collectionDef of data.collections) { const parent = collectionDef.parentName && collectionMap.get(collectionDef.parentName); const parentId = parent ? parent.id.toString() : undefined; - const { assets } = await this.assetImporter.getAssets(collectionDef.assetPaths || []); + const { assets } = await this.assetImporter.getAssets(collectionDef.assetPaths || [], ctx); let filters: ConfigurableOperationInput[] = []; try { filters = (collectionDef.filters || []).map(filter =>