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 authored and JiriLojda committed Jan 8, 2024
1 parent 988931f commit 98dffce
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 98dffce

Please sign in to comment.