From f6ecf3a393ba50bb74ce83ad2bc723e2670f7215 Mon Sep 17 00:00:00 2001
From: real-zephex <zephex-1@outlook.com>
Date: Fri, 12 Apr 2024 11:39:57 +0530
Subject: minor fixes

---
 src/app/kdrama/components/search.jsx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'src/app/kdrama/components/search.jsx')

diff --git a/src/app/kdrama/components/search.jsx b/src/app/kdrama/components/search.jsx
index 5444c89..0dac544 100644
--- a/src/app/kdrama/components/search.jsx
+++ b/src/app/kdrama/components/search.jsx
@@ -6,6 +6,7 @@ import { FaSearch } from "react-icons/fa";
 import FetchSearchTitle from "./searchQuery";
 import Image from "next/image";
 import Link from "next/link";
+import { PreFetchAnimeInfo } from "./cacher";
 
 export default function DramaSearch() {
 	const [title, setTitle] = useState("");
@@ -15,6 +16,7 @@ export default function DramaSearch() {
 	const handleSearch = async (title) => {
 		setLoadingText(true);
 		const data = await FetchSearchTitle(title);
+		PreFetchAnimeInfo(data);
 		setLoadingText(false);
 		setInfoTitle(data);
 	};
@@ -32,7 +34,7 @@ export default function DramaSearch() {
 						}
 					}}
 				></input>
-			</div>	
+			</div>
 
 			{loadingText && (
 				<p className={styles.LoadingText}>Wait a moment...</p>
-- 
cgit v1.2.3

