Skip to content

Commit

Permalink
[ACS-6804] Fix upload API file placement when relative path is undefi…
Browse files Browse the repository at this point in the history
…ned (#9342)
  • Loading branch information
MichalKinas committed Feb 15, 2024
1 parent 6468298 commit 1d3a7b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/js-api/src/api/content-custom-api/api/upload.api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class UploadApi extends NodesApi {
const nodeBodyRequired = {
name: fileDefinition.name,
nodeType: 'cm:content',
relativePath
relativePath: relativePath ?? null
};

nodeBody = Object.assign(nodeBodyRequired, nodeBody);
Expand Down

0 comments on commit 1d3a7b1

Please sign in to comment.