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

Respect preloaded data (fix typo)

parent a29a3544
No related branches found
No related tags found
1 merge request!53Resolve "AbsenceReasonButtons avoid loading if data is there"
Pipeline #193901 passed
...@@ -12,7 +12,7 @@ export default { ...@@ -12,7 +12,7 @@ export default {
absenceReasons: { absenceReasons: {
query: gqlAbsenceReasons, query: gqlAbsenceReasons,
skip() { skip() {
return this.customAbsenceReasons > 0; 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