Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 🐛 add text to typologies files #489

Merged
merged 1 commit into from
Jun 5, 2024
Merged

Conversation

nutfdt
Copy link
Collaborator

@nutfdt nutfdt commented Jun 5, 2024

No description provided.

@nutfdt nutfdt self-assigned this Jun 5, 2024
@nutfdt nutfdt requested a review from thomashbrnrd as a code owner June 5, 2024 13:45
@nutfdt
Copy link
Collaborator Author

nutfdt commented Jun 5, 2024

Le soucis avec l'affichage des vidéos de mise en sécurité pour les pistolets semi-auto, les épaules à sous garde et à un coup par canon venaient du fait qu'elles ne remplissait pas la condition if puisqu'elles n'avaient pas de clé text dans leurs fichiers de typologies.

const selectedOption = computed(() => {
  if (typology.securingSteps[0].text) {
    return typology.securingSteps.at(store.selectedOptions.length - 1).options.find((option) => option.value === store.selectedOptions.at(-1))
  }
  return typology.securingSteps[0].options[0]
})

@nutfdt nutfdt merged commit 7776725 into develop Jun 5, 2024
6 checks passed
@nutfdt nutfdt deleted the fix-selectedoption branch June 5, 2024 14:59
@nutfdt nutfdt linked an issue Jun 6, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix bug securing videos
2 participants