Skip to content

Commit

Permalink
Merge pull request #93 from goniszewski/92-500-error-when-searching-o…
Browse files Browse the repository at this point in the history
…n-clean-install-invalid-filter-parameters
  • Loading branch information
goniszewski committed Apr 26, 2024
2 parents 0faaf29 + 45c94d4 commit 44af5bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
if ($searchedValue.trim()) {
const searchedBookmarksIds = $searchEngine.search($searchedValue).map((b) => b.item.id);
_.throttle(() => {
fetch(`/api/bookmarks?ids=${JSON.stringify(searchedBookmarksIds)}`)
fetch(`/api/bookmarks?ids=${searchedBookmarksIds.join(',')}`)
.then((r) => r.json())
.then((r) => {
$bookmarksToDisplay = r.bookmarks;
Expand Down

0 comments on commit 44af5bc

Please sign in to comment.