Prevent error with null

This commit is contained in:
FusionPBX
2025-06-24 14:20:05 -06:00
committed by GitHub
parent 333606e500
commit e7de9d4884

View File

@@ -616,6 +616,7 @@ echo "<script src='resources/javascript/arrows.js?v=$version'></script>\n";
update_call_element(`caller_id_name_${uuid}`, origin_name);
//remove the call arrow
const span = document.getElementById(`arrow_${uuid}`);
if (!span) { return; }
span.removeChild(span.firstChild);
}
if (call.topic === 'exit') {