Skip to content

Commit

Permalink
chore(concierge): fix adding new desks
Browse files Browse the repository at this point in the history
  • Loading branch information
MrYuion committed Jan 20, 2025
1 parent 019e7bf commit 4570cfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/concierge/src/app/desks/desks-state.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ export class DesksStateService extends AsyncHandler {
this._change.next(Date.now());
}

public async editDesk(desk?: Desk) {
public async editDesk(desk: Desk = new Desk()) {
const ref = this._dialog.open(DeskModalComponent, { data: { desk } });
const state = await Promise.race([
ref.afterClosed().toPromise(),
Expand Down

0 comments on commit 4570cfa

Please sign in to comment.