From cb4c5e1f5a3a6fc26ee1e521e4ce3061b87e8f17 Mon Sep 17 00:00:00 2001 From: ajoalex-neoito Date: Thu, 9 Dec 2021 12:21:32 +0530 Subject: [PATCH] fix: blog filter fixed --- component/admin/EventInfo.jsx | 4 +--- pages/admin/blogs/index.js | 3 --- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/component/admin/EventInfo.jsx b/component/admin/EventInfo.jsx index f5718089..4a363e88 100644 --- a/component/admin/EventInfo.jsx +++ b/component/admin/EventInfo.jsx @@ -4,8 +4,7 @@ import { useRef, useState, useEffect } from "react"; export default function EventInfo ({ eventDetails, setEventDetails , eventDetailsError , setEventDetailsError }) { const [fileName, setFileName] = useState(""); const ref = useRef(); - console.log(eventDetails?.eventImage); - const [pimg, setPimg] = useState() + const [pimg, setPimg] = useState('') const imageUploadHandler = async (e) => { const imageFile = e.target.files[0]; setPimg(imageFile) @@ -211,7 +210,6 @@ export default function EventInfo ({ eventDetails, setEventDetails , eventDetail onClick={() => ref.current.click()} >