diff --git a/src/pages/Profile/ProfileCurriculum/Competences/Ability/CurriculumAbility.tsx b/src/pages/Profile/ProfileCurriculum/Competences/Ability/CurriculumAbility.tsx
index f9260a68..8fc14194 100644
--- a/src/pages/Profile/ProfileCurriculum/Competences/Ability/CurriculumAbility.tsx
+++ b/src/pages/Profile/ProfileCurriculum/Competences/Ability/CurriculumAbility.tsx
@@ -17,8 +17,8 @@ export function CurriculumAbility(props: ProfileCompetencesProps) {
return null;
}
- const sortedCompetences = (profileContext.profileListData.competences as any)
- .toSorted((c1 :any, c2 :any) => new Date(c1.creationDate).getTime() - new Date(c2.creationDate).getTime());
+ const sortedCompetences = [...profileContext.profileListData.competences]
+ .sort((c1, c2) => new Date(c1.creationDate).getTime() - new Date(c2.creationDate).getTime());
const [selectedCompeteceId, setSelectedCompeteceId] = useState('');
const [isEditing, setIsEditing] = useState(false);
@@ -94,7 +94,7 @@ export function CurriculumAbility(props: ProfileCompetencesProps) {
{profileContext.profileListData.competences.length > 0
- ? sortedCompetences.map((competence : any) => {
+ ? sortedCompetences.map((competence) => {
return (
@@ -102,7 +102,7 @@ export function CurriculumAbility(props: ProfileCompetencesProps) {
{competence.competenceType.name}
-
{(LevelToLabel as any)[competence.level]}
+
{(LevelToLabel)[competence.level]}
diff --git a/src/pages/Profile/ProfilePage.tsx b/src/pages/Profile/ProfilePage.tsx
index fd03e321..406bfc7c 100644
--- a/src/pages/Profile/ProfilePage.tsx
+++ b/src/pages/Profile/ProfilePage.tsx
@@ -44,7 +44,7 @@ export function ProfilePage() {
},
reloadPage: () => {navigate(location.href)},
- } as any), [loaderData]);
+ }), [loaderData]);
useEffect(() => {
if (auth.user === null) {
diff --git a/src/pages/Profile/loader.ts b/src/pages/Profile/loader.ts
index 9a952449..d52d063d 100644
--- a/src/pages/Profile/loader.ts
+++ b/src/pages/Profile/loader.ts
@@ -64,10 +64,10 @@ export async function ProfilePageLoader(args: LoaderFunctionArgs): Promise
;
-export type CompetenceTypeList_ResponseDTO = CompetenceType[];
+export type CompetenceTypeList_ResponseDTO = ApiResponse<{ list: CompetenceType[] }>;
export async function get(body: CompetenceTypeGet_RequestDTO) {
return (await api.post("/competencetype/get", {
diff --git a/src/services/UniversimeApi/Institution.ts b/src/services/UniversimeApi/Institution.ts
index f4e451e5..70da52ce 100644
--- a/src/services/UniversimeApi/Institution.ts
+++ b/src/services/UniversimeApi/Institution.ts
@@ -7,7 +7,7 @@ export type institutionGet_RequestDTO = {
}
export type InstitutionTypeGet_ResponseDTO = ApiResponse<{ institution: Institution }>;
-export type InstitutionTypeList_ResponseDTO = Institution[];
+export type InstitutionTypeList_ResponseDTO = ApiResponse<{ lista: Institution[] }>;
export async function get(body:institutionGet_RequestDTO) {
return (await api.post("/curriculum/institution/obter", {
diff --git a/src/services/UniversimeApi/TypeEducation.ts b/src/services/UniversimeApi/TypeEducation.ts
index 1a431499..4bbc5760 100644
--- a/src/services/UniversimeApi/TypeEducation.ts
+++ b/src/services/UniversimeApi/TypeEducation.ts
@@ -8,7 +8,7 @@ export type typeEducation_RequestDTO = {
}
export type TypeEducationGet_ResponseDTO = ApiResponse<{ typeEducation: TypeEducation }>;
-export type TypeEducationList_ResponseDTO = TypeEducation[];
+export type TypeEducationList_ResponseDTO = ApiResponse<{lista: TypeEducation[]}>;
export async function get(body: typeEducation_RequestDTO) {
return (await api.post("/curriculum/TypeEducation/obter", {
diff --git a/src/services/UniversimeApi/TypeExperience.ts b/src/services/UniversimeApi/TypeExperience.ts
index a0e1724f..263faa0c 100644
--- a/src/services/UniversimeApi/TypeExperience.ts
+++ b/src/services/UniversimeApi/TypeExperience.ts
@@ -7,7 +7,7 @@ export type typeExperience_RequestDTO = {
}
export type TypeExperienceGet_ResponseDTO = ApiResponse<{ typeEducation: TypeExperience }>;
-export type TypeExperienceList_ResponseDTO = TypeExperience[];
+export type TypeExperienceList_ResponseDTO = ApiResponse<{ lista: TypeExperience[] }>;
export async function get(body: typeExperience_RequestDTO) {
return (await api.post("/curriculum/typeExperience", {