From 5aa8b1103e6600b7c553ea84e96df44cf7bc6e17 Mon Sep 17 00:00:00 2001 From: Kentai Radiquum Date: Sun, 14 Jul 2024 12:39:27 +0500 Subject: [PATCH] fix: clear search results on new search. fix: related category title too long. --- app/components/RelatedSection/RelatedSection.jsx | 2 +- app/pages/Search.jsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/components/RelatedSection/RelatedSection.jsx b/app/components/RelatedSection/RelatedSection.jsx index c3d1be5..1ee3d86 100644 --- a/app/components/RelatedSection/RelatedSection.jsx +++ b/app/components/RelatedSection/RelatedSection.jsx @@ -23,7 +23,7 @@ export const RelatedSection = (props) => { ); })} -
+

{props.name_ru}

{props.release_count} {declension} во франшизе diff --git a/app/pages/Search.jsx b/app/pages/Search.jsx index 5b9b1cf..5db4cb4 100644 --- a/app/pages/Search.jsx +++ b/app/pages/Search.jsx @@ -72,6 +72,7 @@ export function SearchPage() { className="max-w-full mx-auto" onSubmit={(e) => { e.preventDefault(); + setContent(null) setQuery(e.target[0].value.trim()); router.push(`/search?q=${e.target[0].value.trim()}`); }}