File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 162162 <NcActionButton
163163 v-for =" (answer, type) in answerTypesFilter"
164164 :key =" answer.label"
165- :close-after-click =" !answer.subtypes "
165+ :close-after-click =" !hasSubtypes( answer) "
166166 :disabled =" isLoadingQuestions"
167+ :is-menu =" hasSubtypes(answer)"
167168 class =" question-menu__question"
168169 @click ="
169- answer.subtypes
170+ hasSubtypes( answer)
170171 ? (activeQuestionType = type)
171172 : addQuestion(type)
172173 " >
@@ -344,6 +345,11 @@ export default {
344345 return filteredAnswerTypes
345346 },
346347
348+ hasSubtypes () {
349+ return (answer ) =>
350+ answer && answer .subtypes && Object .keys (answer .subtypes ).length > 0
351+ },
352+
347353 lockedUntilFormatted () {
348354 return moment (this .form .lockedUntil , ' X' ).fromNow ()
349355 },
You can’t perform that action at this time.
0 commit comments