Skip to content

Commit

Permalink
hotfix type issue (#1003)
Browse files Browse the repository at this point in the history
  • Loading branch information
theosanderson authored Feb 12, 2024
1 parent 7408255 commit 8291962
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion website/src/pages/[organism]/search/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ const lapisUrl = getLapisUrl(clientConfig, organism);
let postParams = new URLSearchParams();
if (Astro.request.method === 'POST') {
const decoded = await Astro.request.formData();
const formData = await Astro.request.text();
const params = new URLSearchParams(formData);
const decoded = Object.fromEntries(params);
const paramsString = decoded.searchQuery;
postParams = new URLSearchParams(paramsString);
}
Expand Down

0 comments on commit 8291962

Please sign in to comment.