diff --git a/src/api/registry/api.registry.ts b/src/api/registry/api.registry.ts index f20250bad..215bffd4e 100644 --- a/src/api/registry/api.registry.ts +++ b/src/api/registry/api.registry.ts @@ -8,6 +8,7 @@ export default { registryNewByProfileId: (profileId: string) => `${registryNew}${profileId}`, // metadata + profileNewMetaMain: `${metadata}main/person`, profileNewGender: `${metadata}gender`, profileNewReligion: `${metadata}religion`, profileNewRelationship: `${metadata}relationship`, diff --git a/src/modules/04_registryNew/stores/profile.ts b/src/modules/04_registryNew/stores/profile.ts index 346861a80..195a099d0 100644 --- a/src/modules/04_registryNew/stores/profile.ts +++ b/src/modules/04_registryNew/stores/profile.ts @@ -114,7 +114,7 @@ export const useProfileDataStore = defineStore("profile", () => { const fetchPerson = async () => { showLoader(); await http - .get(config.API.person) + .get(config.API.profileNewMetaMain) .then((res) => { const data = res.data.result; let optionbloodGroups: DataOption[] = []; @@ -144,22 +144,16 @@ export const useProfileDataStore = defineStore("profile", () => { name: r.name.toString(), }); }); - optionprefixs = optionprefixs.filter((o) => - prefixOp.value.find((p) => o.name === p) - ); Ops.value.prefixOps = optionprefixs; OpsFilter.value.prefixOps = optionprefixs; let optionrank: DataOption[] = []; - data.prefixs.map((r: any) => { + data.rank.map((r: any) => { optionrank.push({ id: r.id.toString(), name: r.name.toString(), }); }); - optionrank = optionrank.filter( - (o) => !prefixOp.value.find((p) => o.name === p) - ); Ops.value.rankOps = optionrank; OpsFilter.value.rankOps = optionrank;