Compare commits

...

3 Commits

Author SHA1 Message Date
9a0482071a Merge pull request 'pramod_Task#294' (#112) from pramod_Task#294 into Feature_Directory
Reviewed-on: #112
2025-05-15 17:33:16 +00:00
Pramod Mahajan
2922cca22d integrated Contact Tag list API and display in master table 2025-05-15 22:58:50 +05:30
Pramod Mahajan
a3d21ba098 updated incorrect API endpoint 2025-05-15 22:58:02 +05:30
2 changed files with 6 additions and 2 deletions

View File

@ -52,7 +52,11 @@ const useMaster = (isMa) => {
response = response.data
break;
case "Contact Category":
response = await MasterRespository.getContactCategory()
response = await MasterRespository.getContactCategory();
response = response.data
break;
case "Contact Tag":
response = await MasterRespository.getContactTag();
response = response.data
break;
case "Status":

View File

@ -52,7 +52,7 @@ export const MasterRespository = {
createContactCategory: (data ) => api.post( `/api/master/contact-category`, data ),
updateContactCategory: ( id, data ) => api.post( `/api/master/contact-category/${ id }`, data ),
getContactTag: () => api.get( `/api/master/contact-tag` ),
getContactTag: () => api.get( `/api/master/contact-tags` ),
createContactTag: (data ) => api.post( `/api/master/contact-tag`, data ),
updateContactTag: ( id, data ) => api.post( `/api/master/contact-tag/${ id }`, data )