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

Make code more readable

parent 670f8ba9
No related branches found
No related tags found
1 merge request!49Resolve "AbsenceReasonGroupSelect triggers input erroneously"
......@@ -60,11 +60,11 @@ export default {
* @return {boolean} Whether to mount the chip-group
*/
showChips() {
return (
(!this.$apollo.queries.absenceReasons.loading &&
this.absenceReasons.length) ||
this.customAbsenceReasonsExists
);
if (this.customAbsenceReasons) {
return true;
}
return (!this.$apollo.queries.absenceReasons.loading &&
this.absenceReasons.length);
},
customAbsenceReasonsExists() {
return this.customAbsenceReasons.length > 0;
......
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