From 4322ffef769a0e67fccadb9428ee77769b49b9c5 Mon Sep 17 00:00:00 2001 From: Ivan Kiral Date: Wed, 3 Jan 2024 12:16:44 +0100 Subject: [PATCH] fix asset folders with empty array data --- src/commands/importExportEntities/entities/assetFolders.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/commands/importExportEntities/entities/assetFolders.ts b/src/commands/importExportEntities/entities/assetFolders.ts index fb38e61f..9797db2f 100644 --- a/src/commands/importExportEntities/entities/assetFolders.ts +++ b/src/commands/importExportEntities/entities/assetFolders.ts @@ -9,6 +9,10 @@ export const assetFoldersEntity: EntityDefinition { + if (!fileFolders.length) { + return; + } + const projectFolders = await client .modifyAssetFolders() .withData(fileFolders.map(createPatchToAddFolder))