Skip to content
Snippets Groups Projects
Commit 9baeacaf authored by Julian's avatar Julian
Browse files

Simplify and fix condition for showChips

parent 7c395fb4
No related branches found
No related tags found
1 merge request!46Resolve "Fix showChips of absence reason group select"
Pipeline #193052 passed
......@@ -62,11 +62,10 @@ export default {
*/
showChips() {
return (
((!this.$apollo.queries.absenceReasons.loading &&
(!this.$apollo.queries.absenceReasons.loading &&
this.absenceReasons.length) ||
this.customAbsenceReasonsExists ||
(this.allowEmpty && this.value === this.emptyValue)) &&
this.innerValue
this.customAbsenceReasonsExists ||
(this.allowEmpty && this.value === this.emptyValue)
);
},
customAbsenceReasonsExists() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment