Self-hosted AI workspace.
Python
fix: guard sp.destroy() in _loadScheduled against null spinner (#1495)
Paulo Victor Cordeiro35a0ee71bff3
diff --git a/static/js/emailLibrary.js b/static/js/emailLibrary.jsindex 9cf38c18e..a294ca010 100644--- a/static/js/emailLibrary.js+++ b/static/js/emailLibrary.js@@ -1721,7 +1721,7 @@ async function _loadEmails({ force = false, useCache = true } = {}) {async function _loadScheduled(grid, sp) {const res = await fetch(`${API_BASE}/api/email/scheduled`);const data = await res.json();- sp.destroy();+ if (sp) sp.destroy();const items = data.scheduled || [];grid.innerHTML = '';const stats = document.getElementById('email-lib-stats');