Added Document Managment feature #388
@ -128,7 +128,7 @@ const ManageDocument = ({ closeModal, Document_Entity, Entity }) => {
|
|||||||
(t) => String(t.id) === String(documentTypeId)
|
(t) => String(t.id) === String(documentTypeId)
|
||||||
);
|
);
|
||||||
if (!type) return;
|
if (!type) return;
|
||||||
|
setSelectedType(type)
|
||||||
const newSchema = DocumentPayloadSchema({
|
const newSchema = DocumentPayloadSchema({
|
||||||
isMandatory: type.isMandatory ?? false,
|
isMandatory: type.isMandatory ?? false,
|
||||||
regexExpression: type.regexExpression ?? null,
|
regexExpression: type.regexExpression ?? null,
|
||||||
|
@ -178,7 +178,7 @@ const {
|
|||||||
isError,
|
isError,
|
||||||
isLoading
|
isLoading
|
||||||
} = useQuery({
|
} = useQuery({
|
||||||
queryKey: ["Document Type"],
|
queryKey: ["Document Type",category],
|
||||||
queryFn: async () => {
|
queryFn: async () => {
|
||||||
const res = await MasterRespository.getDocumentTypes(category)
|
const res = await MasterRespository.getDocumentTypes(category)
|
||||||
return res.data;
|
return res.data;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user