Skip to content

Commit

Permalink
fix asset folders with empty array data
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanKiral committed Jan 3, 2024
1 parent bb990f7 commit 4322ffe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/commands/importExportEntities/entities/assetFolders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ export const assetFoldersEntity: EntityDefinition<ReadonlyArray<AssetFolderContr
serializeEntities: JSON.stringify,
deserializeEntities: JSON.parse,
importEntities: async (client, fileFolders, context) => {
if (!fileFolders.length) {
return;
}

const projectFolders = await client
.modifyAssetFolders()
.withData(fileFolders.map(createPatchToAddFolder))
Expand Down

0 comments on commit 4322ffe

Please sign in to comment.