Skip to content
Snippets Groups Projects
Commit be14676f authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FEAT #14367 TIME 0:10 fix primary entity default sender

parent 243f0608
No related branches found
No related tags found
No related merge requests found
......@@ -440,7 +440,7 @@ export class SentResourcePageComponent implements OnInit {
setDefaultInfo() {
this.emailsubject = `[${this.resourceData.chrono}] ${this.resourceData.subject}`;
this.emailsubject = this.emailsubject.substring(0, 70);
this.currentSender = this.availableSenders.filter(sender => !this.functions.empty(sender.entityId)).length > 0 ? this.availableSenders.filter(sender => !this.functions.empty(sender.entityId))[0] : this.availableSenders[0];
this.currentSender = this.availableSenders.filter(sender => sender.entityId === this.headerService.user.entities[0].id).length > 0 ? this.availableSenders.filter(sender => sender.entityId === this.headerService.user.entities[0].id)[0] : this.availableSenders[0];
if (!this.functions.empty(this.resourceData.senders)) {
this.resourceData.senders.forEach((sender: any) => {
this.setSender(sender.id);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment