Fixed filters

This commit is contained in:
Torsten Schulz
2024-09-25 17:41:05 +02:00
parent edcfd8130a
commit 08259863ab
2 changed files with 3 additions and 3 deletions

View File

@@ -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 => {

View File

@@ -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);