From 18d037905c105d78a1b6e551dd596de01606eb6f Mon Sep 17 00:00:00 2001 From: Paul Huliganga Date: Wed, 22 Apr 2026 22:21:54 -0400 Subject: [PATCH] Refresh templates after account selection --- web/static/js/auth.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/web/static/js/auth.js b/web/static/js/auth.js index f96621e..fbfc87b 100644 --- a/web/static/js/auth.js +++ b/web/static/js/auth.js @@ -365,8 +365,12 @@ async function selectDocusignAccount(accountId, errorEl = null) { await api.auth.selectDocusignAccount(accountId); closeDocusignAccountPicker(); await refreshAuth(); - const { refreshTemplates } = await import('./templates.js'); - refreshTemplates(); + setState('templatesError', null); + const { refreshTemplates, renderTemplates } = await import('./templates.js'); + await refreshTemplates(); + if ((window.location.hash || '#/templates').startsWith('#/templates')) { + await renderTemplates(); + } showToast('DocuSign account selected.', 'success'); } catch (e) { if (errorEl) {