Skip to content

Commit

Permalink
Add questionCount getter to survey store
Browse files Browse the repository at this point in the history
  • Loading branch information
manuGil committed Feb 13, 2024
1 parent b4fcbf8 commit 0b4affe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/stores/survey.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ export const useSurveyStore = defineStore('survey', {
}
},
getters: {
questionCount() {
return this.questions.length
}

},
actions: {
Expand Down

0 comments on commit 0b4affe

Please sign in to comment.