Closed MrCsabaToth closed 4 years ago
Cannot add session to my schedule if it doesn't have a speaker
I want to be able to add session to my schedule even if it doesn't have a speaker
The session is not added, on the debug console we can see some JS errors when the button clicked
Either hide the button if there's no speaker or make it work
Button hiding can be like this:
<button *ngIf="!schedule.value && session?.speakers" (click)="addToSchedule()" ...
Or make it work
addToSchedule() { this.mySchedule.set({ id: this.session.$key, title: this.session.title, time: this.session.time, tag: this.session.tag ? this.session.tag : null, speakers: this.session.speakers ? this.session.speakers : null, room: this.session.room, section: this.session.section, value: true }); }
Cannot add session to my schedule if it doesn't have a speaker
Expected Behavior
I want to be able to add session to my schedule even if it doesn't have a speaker
Current Behavior
The session is not added, on the debug console we can see some JS errors when the button clicked
Possible Solution
Either hide the button if there's no speaker or make it work
Possible Implementation
Button hiding can be like this:
<button *ngIf="!schedule.value && session?.speakers" (click)="addToSchedule()" ...
Or make it work