Skip to content

Commit

Permalink
Merge pull request #1501 from betagouv/bug-fix-synonyms
Browse files Browse the repository at this point in the history
Bug fix : supprimer une erreur dans le console quand on remplace une demande
  • Loading branch information
hfroot authored Jan 21, 2025
2 parents c799437 + 2f9f870 commit cb33709
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/views/DeclaredElementPage/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ const openModal = (type) => {
const replacement = ref()
const synonyms = ref()
watch(replacement, () => {
synonyms.value = JSON.parse(JSON.stringify(replacement.value.synonyms)) // initialise synonyms that might be updated
// initialiser les synonymes pour permettre la MAJ
synonyms.value = JSON.parse(JSON.stringify(replacement.value.synonyms || []))
})
const cannotReplace = computed(() => replacement.value?.objectType !== element.value.type)
Expand Down

0 comments on commit cb33709

Please sign in to comment.