Skip to content

Commit

Permalink
🐛 Retourne une string vide si la question n'a pas de zone cliquable
Browse files Browse the repository at this point in the history
  • Loading branch information
marouria committed Sep 18, 2024
1 parent d31e385 commit 6579da4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/situations/commun/vues/components/clic_dans_image.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ export default {
},
computed: {
svgDecode() {
if (!this.question.zone_cliquable) {
return '';
}
return atob(this.question.zone_cliquable.split(',')[1]);
}
}
Expand Down

0 comments on commit 6579da4

Please sign in to comment.