Fixed Amazon S3 error (WEB-15) (#2380)

This commit is contained in:
Dhruv Rajpoot
2025-04-06 09:11:34 -06:00
committed by GitHub
parent 3607148784
commit d5879f4858
@@ -54,7 +54,7 @@ export class AmazonS3Component implements OnInit {
getConfigurationValue(configuration: any): string { getConfigurationValue(configuration: any): string {
const value = configuration.value; const value = configuration.value;
if (configuration.name === 's3_access_key' || configuration.name === 's3_secret_key') { if (configuration.name === 's3_access_key' || configuration.name === 's3_secret_key') {
return value.replace(value.substr(1, value.length - 3), value.substr(1, value.length - 3).replace(/./g, '*')); return value ? value.replace(value.substr(1, value.length - 3), value.substr(1, value.length - 3).replace(/./g, '*')) : '';
} }
return value; return value;
} }