From 990e4d92fb6e27f32d38ccad767d1302f820456f Mon Sep 17 00:00:00 2001 From: nacho Date: Fri, 8 Apr 2022 11:05:01 -0300 Subject: [PATCH] fix error search --- pages/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/index.jsx b/pages/index.jsx index 8fd24e4..a258aba 100644 --- a/pages/index.jsx +++ b/pages/index.jsx @@ -35,7 +35,7 @@ export default function Home() { `https://beta.mejorconsalud.com/wp-json/mc/v3/posts?search=${getValues( "article" )}${ - getValues("relevant") ? `&orderby=${dataForm.relevant}` : "" + getValues("relevant") ? `&orderby=${getValues("relevant")}` : "" }&page=${page}` ); let data = await response.json();