mirror of
https://github.com/hyperdxio/hyperdx
synced 2026-04-21 13:37:15 +00:00
fix: Fix session page source change on submit (#1380)
Closes HDX-2858 # Summary This PR fixes a bug on the sessions page which caused any search submission to revert the source select back to its default. The cause of this bug was that the form submission was updating the wrong URL query parameter (source instead of sessionSource), and form submission would trigger the select to take whatever (original) value was set for sessionSource).
This commit is contained in:
parent
d322cd967d
commit
bacefac9e0
2 changed files with 7 additions and 1 deletions
5
.changeset/heavy-walls-suffer.md
Normal file
5
.changeset/heavy-walls-suffer.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"@hyperdx/app": patch
|
||||
---
|
||||
|
||||
fix: Fix session page source change on submit
|
||||
|
|
@ -296,7 +296,8 @@ export default function SessionsPage() {
|
|||
const onSubmit = useCallback(() => {
|
||||
onSearch(displayedTimeInputValue);
|
||||
handleSubmit(values => {
|
||||
setAppliedConfig(values);
|
||||
const { source, ...rest } = values;
|
||||
setAppliedConfig({ sessionSource: source, ...rest });
|
||||
})();
|
||||
}, [handleSubmit, setAppliedConfig, onSearch, displayedTimeInputValue]);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue