diff --git a/package-lock.json b/package-lock.json index 41237b8f..d864ce1c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,7 @@ "name": "@agencebio/cartobio-front", "version": "2.24.2", "dependencies": { - "@agencebio/rosetta-cultures": "^1.4.0", + "@agencebio/rosetta-cultures": "^2.0.1", "@algolia/autocomplete-js": "^1.8.3", "@algolia/autocomplete-theme-classic": "^1.8.3", "@gouvfr/dsfr": "1.11.2", @@ -66,9 +66,9 @@ "dev": true }, "node_modules/@agencebio/rosetta-cultures": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/@agencebio/rosetta-cultures/-/rosetta-cultures-1.8.5.tgz", - "integrity": "sha512-pXNtVCUhWDVnCDSgcu5Yt/cVw/WXFtL5d6nc+xOjGhzx+qIWj1Ti0wFbvA4wuQgq5ah87F77JNQJT6FhOG+qmw==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@agencebio/rosetta-cultures/-/rosetta-cultures-2.0.1.tgz", + "integrity": "sha512-tPxOzeQe+NGSJUL+gT4F9LQhGdOQmb1M+AOIkzSvDmi1cStXn0LLfPF0wHBzzkmEpWgzzJN9jcB5FiefkuqtYw==", "dependencies": { "csv-parse": "^5.3.6" }, diff --git a/package.json b/package.json index a0d677e0..531cddce 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "node": "^20.0.0" }, "dependencies": { - "@agencebio/rosetta-cultures": "^1.4.0", + "@agencebio/rosetta-cultures": "^2.0.1", "@algolia/autocomplete-js": "^1.8.3", "@algolia/autocomplete-theme-classic": "^1.8.3", "@gouvfr/dsfr": "1.11.2", diff --git a/src/components/Features/CultureTypeSelector.vue b/src/components/Features/CultureTypeSelector.vue index c98d582c..3efb2d12 100644 --- a/src/components/Features/CultureTypeSelector.vue +++ b/src/components/Features/CultureTypeSelector.vue @@ -60,7 +60,7 @@ const hasErrors = computed(() => errors.value.size > 0) const query = ref(fromCodeCpf(props.modelValue)?.libelle_code_cpf || '') const choices = computed(() => { - const selectableCpf = cpf + const selectableCpf = cpf.CPF .filter(({ is_selectable }) => is_selectable) .sort((a, b) => a.libelle_code_cpf.localeCompare(b.libelle_code_cpf))