Skip to content

Commit

Permalink
Merge pull request #464 from ertush/hotfix
Browse files Browse the repository at this point in the history
Updated facilities index search
  • Loading branch information
ertush authored Aug 28, 2024
2 parents b8551ee + 63643d0 commit 21b7685
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/facilities/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@ export async function getServerSideProps(ctx) {

if (ctx?.query?.q) {
query.searchTerm = ctx.query.q
url += `?search={"query":{"query_string":{"default_field":"name","query":"${query.searchTerm}"}}}`
url += `?name=${ctx?.query?.q}` // `?search={"query":{"query_string":{"default_field":"name","query":"${query.searchTerm}"}}}`
}

const other_posssible_filters = [
Expand Down Expand Up @@ -955,7 +955,7 @@ export async function getServerSideProps(ctx) {
}


console.log({url})
// console.log({url})
try {
facilities = (await (await fetch(url, {
headers: {
Expand Down

0 comments on commit 21b7685

Please sign in to comment.