diff --git a/frontend/packages/dashboard/src/common.js b/frontend/packages/dashboard/src/common.js index 161bf773..22f15719 100644 --- a/frontend/packages/dashboard/src/common.js +++ b/frontend/packages/dashboard/src/common.js @@ -387,7 +387,7 @@ export const Panel = (() => { async function fetchStateFile(path) { const resp = await fetch('/api/state-file?path=' + encodeURIComponent(path)); const text = await resp.text(); - if (!resp.ok) throw new Error(text || ('HTTP ' + resp.status)); + if (!resp.ok) throw new Error(text || ('http ' + resp.status)); return text; } // A 2-tab file preview: a "rendered" tab (default) + a raw-text tab. diff --git a/frontend/packages/dashboard/src/tabs.js b/frontend/packages/dashboard/src/tabs.js index 14312497..35b36e94 100644 --- a/frontend/packages/dashboard/src/tabs.js +++ b/frontend/packages/dashboard/src/tabs.js @@ -1281,7 +1281,7 @@ window.marked = marked; saveBtn.title = txt; } else { saveBtn.textContent = '✓'; - setTimeout(() => fetchAndRenderToolGroups(), 800); + setTimeout(fetchAndRenderToolGroups, 800); } } catch (err) { saveBtn.textContent = 'err'; @@ -3218,7 +3218,7 @@ window.marked = marked; } // Hold the flash briefly so the operator can read it before the // refresh wipes the row in place. - setTimeout(() => { refreshSchedules(); }, 1500); + setTimeout(refreshSchedules, 1500); } catch (err) { alert('fire-now failed: ' + err); restoreBtn();