Commit 81685280 by GD-A-150752

test-commit-3

parent 80c3a68d
......@@ -64,16 +64,21 @@ export class AdminPortalLayoutComponent implements OnInit, OnDestroy {
this.subscriptions.push(this.iframeMsgHandlingService.msgReceived.subscribe(
(message: any) => {
if (!message || !message.name) {
this.clearMessageData();
return;
}
if (message.name !== 'HiringTeamChat' || message.message === null) {
this.clearMessageData();
return;
}
if (message.name === 'HiringTeamChat' && message.message === null) {
this.jobId = null;
this.loggedIn = null;
this.showBubble = false;
return;
}
const msg = JSON.parse(message.message);
console.log('Admin Parsed', msg);
this.jobId = msg.JobApplicationID;
......@@ -206,11 +211,6 @@ export class AdminPortalLayoutComponent implements OnInit, OnDestroy {
);
}
clearMessageData(): void {
this.jobId = null;
this.loggedIn = null;
}
ngOnDestroy(): void {
this.utilsService.unsubscribeSubscriptions(this.subscriptions);
}
......
......@@ -231,6 +231,10 @@ export class MessageEngineApplicantViewComponent extends BaseComponent implement
setEditorClass(): void {
setTimeout(() => {
if (!this.messageEditor) {
return;
}
const editElement = this.messageEditor.getQuill().container;
if (!editElement) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment