Skip to content

Commit

Permalink
Fix upload file into search page unnecessary POST (#2200)
Browse files Browse the repository at this point in the history
## Which problem is this PR solving?
- Resolves #2192

## Description of the changes
- Remove uploading files into the search page unnecessary POST

## How was this change tested?
Manually tested.

## Checklist
- [x] I have read
https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md
- [x] I have signed all commits
- [ ] I have added unit tests for the new functionality
- [x] I have run lint and test steps successfully
  - for `jaeger`: `make lint test`
  - for `jaeger-ui`: `yarn lint` and `yarn test`

Signed-off-by: tico88612 <[email protected]>
  • Loading branch information
tico88612 authored Mar 5, 2024
1 parent f704b56 commit 8fe552a
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ export default function FileLoader(props: FileLoaderProps) {
return (
<Dragger
accept=".json"
beforeUpload={(file, fileList) =>
fileList.forEach(fileFromList => props.loadJsonTraces({ file: fileFromList }))
}
beforeUpload={(file, fileList) => {
fileList.forEach(fileFromList => props.loadJsonTraces({ file: fileFromList }));
return false;
}}
multiple
>
<IoDocumentAttachOutline className="Dragger--icon" />
Expand Down

0 comments on commit 8fe552a

Please sign in to comment.