in Components/PCF/Base64Download/Base64Download/index.ts [46:55]
public updateView(context: ComponentFramework.Context<IInputs>): void {
if (context.parameters.base64DocumentBody !== null && context.parameters.base64DocumentBody.raw !== null
&& context.parameters.base64DocumentBody.raw !== 'val'
&& context.parameters.documentName !== null && context.parameters.documentName.raw !== null
&& context.parameters.documentName.raw !== 'val') {
const arrayBuffer = this.base64ToArrayBuffer(context.parameters.base64DocumentBody.raw);
const fileName = context.parameters.documentName.raw;
this.createDownloadLink(arrayBuffer, fileName);
}
}