Skip to content

Commit

Permalink
🐛fix new decoy already filled
Browse files Browse the repository at this point in the history
  • Loading branch information
TarradeMarc committed Jan 7, 2025
1 parent 84c3ee1 commit d52c130
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export class AddDecoyComponent implements OnInit, OnDestroy {
} else {
this.decoyService.isEdit = true;
this.isEdit = true;
this.decoyService.decoy = {decoy:{}};
}
});
}
Expand Down
3 changes: 3 additions & 0 deletions controlpanel/cad/src/app/services/decoy.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ export class DecoyService {
get decoy(): Decoy {
return this.decoySubject.value;
}
set decoy(v: Decoy) {
this.decoySubject.next(v);
}
updateDecoy(newDecoy: Decoy) {
this.decoySubject.next(newDecoy);
}
Expand Down

0 comments on commit d52c130

Please sign in to comment.