From e5b34eb1ba63f299285748f992c80a7f645dd9e0 Mon Sep 17 00:00:00 2001 From: Pramod Mahajan Date: Wed, 11 Jun 2025 19:30:46 +0530 Subject: [PATCH] show validation msg prperly at contact form --- src/components/Directory/ManageDirectory.jsx | 5 +++-- src/components/Layout/Header.jsx | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/Directory/ManageDirectory.jsx b/src/components/Directory/ManageDirectory.jsx index 9f4d33fa..285b74f2 100644 --- a/src/components/Directory/ManageDirectory.jsx +++ b/src/components/Directory/ManageDirectory.jsx @@ -362,7 +362,7 @@ const ManageDirectory = ({ submitContact, onCLosed }) => { {buckets?.map((item) => (
  • {
  • ))} + + {errors.bucketIds && ( {errors.bucketIds.message} )} - diff --git a/src/components/Layout/Header.jsx b/src/components/Layout/Header.jsx index aa8ce99c..46cab358 100644 --- a/src/components/Layout/Header.jsx +++ b/src/components/Layout/Header.jsx @@ -86,7 +86,7 @@ const Header = () => { if (projects && selectedProject !== " ") { dispatch(setProjectId(projects[0]?.id)); } - }, [projects, selectedProject]); + }, [projects, ]); const isProjectPath = /^\/projects\/[a-f0-9-]{36}$/.test(location.pathname); return (