Fix content block bug

This commit is contained in:
Ramon Wenger 2019-07-29 09:40:12 +02:00
parent 04cfa18853
commit 981302192c
1 changed files with 4 additions and 1 deletions

View File

@ -174,6 +174,9 @@
return this.me.selectedClass; return this.me.selectedClass;
}, },
hidden() { hidden() {
if (!this.contentBlock.id || !this.contentBlock.visibleFor || !this.contentBlock.hiddenFor) {
return false;
}
if (this.contentBlock.userCreated) { if (this.contentBlock.userCreated) {
if (this.schoolClass.id === '') { if (this.schoolClass.id === '') {
return false; return false;