Fixed filters
This commit is contained in:
@@ -29,8 +29,8 @@ class MemberService {
|
||||
const where = {
|
||||
clubId: clubId
|
||||
};
|
||||
if (!showAll) {
|
||||
where.active = true;
|
||||
if (!showAll || showAll === 'false') {
|
||||
where['active'] = true;
|
||||
}
|
||||
return Member.findAll({ where })
|
||||
.then(members => {
|
||||
|
||||
@@ -146,7 +146,7 @@ export default {
|
||||
return club ? club.name : '';
|
||||
},
|
||||
async generatePDF() {
|
||||
const element = this.$el.querySelector('.flex-item > div'); // Das richtige div-Element auswählen
|
||||
const element = this.$el.querySelector('.flex-item > div');
|
||||
if (element) {
|
||||
const pdfGen = new PDFGenerator();
|
||||
await pdfGen.addSchedule(element);
|
||||
|
||||
Reference in New Issue
Block a user