Use same find methods

This commit is contained in:
Christian Cueni 2018-10-18 16:59:17 +02:00
parent 7a2f8c91e4
commit 622365bfbd
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@
isSchoolClassHidden(schoolClass) {
return this.contentBlock.userCreated
? this.contentBlock.visibleFor.findIndex(el => el.id === schoolClass.id) === -1
: !!this.contentBlock.hiddenFor.find(el => el.id === schoolClass.id);
: this.contentBlock.hiddenFor.findIndex(el => el.id === schoolClass.id) > -1;
}
},