251211:1622 Frontend: refactor Dashboard (not finish)
This commit is contained in:
@@ -17,7 +17,7 @@ export const correspondenceService = {
|
||||
|
||||
getById: async (id: string | number) => {
|
||||
const response = await apiClient.get(`/correspondences/${id}`);
|
||||
return response.data;
|
||||
return response.data.data; // Unwrap NestJS Interceptor 'data' wrapper
|
||||
},
|
||||
|
||||
create: async (data: CreateCorrespondenceDto) => {
|
||||
@@ -71,4 +71,4 @@ export const correspondenceService = {
|
||||
});
|
||||
return response.data;
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user