Fix 'fmt is not defined' in the admin Coaching Radar (helper was function-local elsewhere)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -90,6 +90,7 @@ function genBreakdownHtml(gc,rootId){
|
||||
document.getElementById('orgShareForm').addEventListener('submit',e=>{e.preventDefault();loadOrgShare()});
|
||||
async function loadCoaching(){
|
||||
const out=document.getElementById('coachOut');if(!out)return;
|
||||
const fmt=n=>Number(n).toLocaleString(undefined,{maximumFractionDigits:0});
|
||||
out.innerHTML='<div class="empty">Scanning the org…</div>';
|
||||
try{
|
||||
const root=(document.getElementById('orgRoot')&&document.getElementById('orgRoot').value.trim())||(state&&state.config&&state.config.orgRootId)||'21';
|
||||
|
||||
Reference in New Issue
Block a user