[ACS-6804] Fix upload API file placement when relative path is undefined (#9342)

This commit is contained in:
MichalKinas
2024-02-15 12:15:23 -05:00
committed by GitHub
parent 6468298bb0
commit 1d3a7b1573
@@ -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);