From 2d10412137c11c30f7144e88b60c4de733ebad60 Mon Sep 17 00:00:00 2001 From: yasaman Date: Thu, 1 Feb 2024 14:24:21 +0330 Subject: [PATCH] a bug fixed --- components/Search.tsx | 4 +--- components/TableController.tsx | 2 +- utils/adminApi.ts | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/components/Search.tsx b/components/Search.tsx index 086da7c..ddeb8fc 100644 --- a/components/Search.tsx +++ b/components/Search.tsx @@ -22,7 +22,6 @@ export default function Search({ const inputRef = useRef(null); const [cancel, setCancel] = useState(false); const handleSubmit = (e: any) => { - console.log(222); e.preventDefault(); setCancel(true); }; @@ -31,12 +30,11 @@ export default function Search({ e.preventDefault(); setCancel(false); if (changeValue !== undefined) { - console.log(444); changeValue(""); } Cancel(true); }; - console.log(value); + return (
{convertFullTime(item.lastChanged)} - + {item?.title ? item.title : "-"} diff --git a/utils/adminApi.ts b/utils/adminApi.ts index 277e17b..907f215 100644 --- a/utils/adminApi.ts +++ b/utils/adminApi.ts @@ -162,7 +162,7 @@ export async function UpdateWebContents({ // .....News................................................. export async function GetAllNews({ PageNumber = 1, - PageSize = 5, + PageSize = 6, }: { PageNumber?: number; PageSize?: number;