Skip to content

Commit

Permalink
Update projection-edit-dialog to fix bugs (#2891)
Browse files Browse the repository at this point in the history
  • Loading branch information
reiterl authored Oct 23, 2023
1 parent c1889b9 commit 928642c
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -325,18 +325,19 @@ export class ProjectorEditDialogComponent extends BaseUiComponent implements OnI
}
// All defaults that were set to false should be set to standard, if they were previously set to current projector
const notSelectedKeys = Object.keys(this.projectiondefaultVerbose).filter(
key => !projectiondefaultKeys.includes(key)
key => !projectiondefaultKeys.includes(this.projectiondefaultKeys[key])
);
for (let i = 0; i < notSelectedKeys.length; i++) {
if (this.isCurrentProjectorDefault(notSelectedKeys[i])) {
if (this.getDefaultProjectorIds(notSelectedKeys[i]).length === 1) {
const key = this.projectiondefaultKeys[notSelectedKeys[i]];
if (this.isCurrentProjectorDefault(key)) {
if (this.getDefaultProjectorIds(key).length === 1) {
payload[PROJECTIONDEFAULT[notSelectedKeys[i]]] = [
this.activeMeeting.meeting!.reference_projector_id
];
} else {
payload[PROJECTIONDEFAULT[notSelectedKeys[i]]] = this.getDefaultProjectorIds(
notSelectedKeys[i]
).filter(id => id !== this.projector.id);
payload[PROJECTIONDEFAULT[notSelectedKeys[i]]] = this.getDefaultProjectorIds(key).filter(
id => id !== this.projector.id
);
}
}
}
Expand Down

0 comments on commit 928642c

Please sign in to comment.