Pass the replaced value (#6143)

This commit is contained in:
Maurizio Vitale
2020-09-21 19:28:45 +01:00
committed by GitHub
parent 46ccda68b3
commit d2a9424827

View File

@@ -104,10 +104,8 @@ export class AttachFileCloudWidgetComponent extends UploadCloudWidgetComponent i
if (this.isAlfrescoAndLocal()) {
const destinationFolderPath = this.getAliasAndRelativePathFromDestinationFolderPath(this.field.params.fileSource.destinationFolderPath);
const opts = { relativePath: destinationFolderPath.path };
destinationFolderPath.path = this.replaceAppNameAliasWithValue(destinationFolderPath.path);
const nodeId = await this.contentNodeSelectorService.fetchNodeIdFromRelativePath(destinationFolderPath.alias, opts);
const nodeId = await this.contentNodeSelectorService.fetchNodeIdFromRelativePath(destinationFolderPath.alias, { relativePath: destinationFolderPath.path });
this.rootNodeId = nodeId ? nodeId : destinationFolderPath.alias;
}