dynamicallu show Document Id it required ? or not base document Type

This commit is contained in:
pramod mahajan 2025-09-02 16:43:04 +05:30
parent a95e365087
commit 809f2ef726
2 changed files with 2 additions and 2 deletions

View File

@ -128,7 +128,7 @@ const ManageDocument = ({ closeModal, Document_Entity, Entity }) => {
(t) => String(t.id) === String(documentTypeId)
);
if (!type) return;
setSelectedType(type)
const newSchema = DocumentPayloadSchema({
isMandatory: type.isMandatory ?? false,
regexExpression: type.regexExpression ?? null,

View File

@ -178,7 +178,7 @@ const {
isError,
isLoading
} = useQuery({
queryKey: ["Document Type"],
queryKey: ["Document Type",category],
queryFn: async () => {
const res = await MasterRespository.getDocumentTypes(category)
return res.data;