fix: Create new call popup if call popup does not exists
This commit is contained in:
parent
6330e20d16
commit
1016ff48fc
@ -200,10 +200,10 @@ $(document).on('app_ready', function () {
|
||||
frappe.realtime.on('show_call_popup', call_log => {
|
||||
let call_popup = erpnext.call_popup;
|
||||
if (call_popup && call_log.name === call_popup.call_log.name) {
|
||||
erpnext.call_popup = new CallPopup(call_log);
|
||||
} else {
|
||||
call_popup.update_call_log(call_log);
|
||||
call_popup.dialog.show();
|
||||
} else {
|
||||
erpnext.call_popup = new CallPopup(call_log);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user