We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7860c08 commit 5fb4626Copy full SHA for 5fb4626
frontend/src/services/URLScan.ts
@@ -6,8 +6,12 @@ const urlScanAPI = async (props: ScanProps) => {
6
try {
7
const formData = new FormData();
8
let s3url: string = '';
9
- if (props.source_type === 's3 bucket' && !props.urlParam?.endsWith('/')) {
10
- s3url = props?.urlParam + '/';
+ if (props.source_type === 's3 bucket') {
+ if (!props.urlParam?.endsWith('/')) {
11
+ s3url = props?.urlParam + '/';
12
+ } else {
13
+ s3url = props?.urlParam
14
+ }
15
}
16
formData.append('uri', props?.userCredentials?.uri ?? '');
17
formData.append('database', props?.userCredentials?.database ?? '');
0 commit comments