Skip to content

Commit

Permalink
fix: search reloads page is wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
xnought committed Feb 9, 2024
1 parent 10d14de commit d8d2125
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/routes/Search.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
});
async function search() {
console.log(massFilter);
const result = await Backend.searchProteins({
query,
speciesFilter,
Expand All @@ -39,6 +38,7 @@
speciesFilter = undefined;
lengthFilter = lengthExtent;
massFilter = massExtent;
query = "";
await search();
}
</script>
Expand Down Expand Up @@ -104,7 +104,7 @@
</div>
</div>
<div id="view">
<form id="search-bar" on:submit={search}>
<form id="search-bar" on:submit|preventDefault={search}>
<Search
size="lg"
type="text"
Expand Down

0 comments on commit d8d2125

Please sign in to comment.