fix(dashboard): clear API-unreachable warning when API recovers

Always call display() for the warning element so Observable Framework
replaces it on each poll re-run. Previously the conditional display()
call left the warning rendered indefinitely once shown.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-19 00:51:11 +01:00
parent b76849a60d
commit 1bcc46ea3f

View File

@@ -149,7 +149,7 @@ if (_h1) { _h1.style.position = "relative"; withDocHelp(_h1, "/docs/overview");
```
```js
if (summary.error) display(html`<div class="warning">⚠️ ${summary.error}</div>`);
display(html`<div class="warning" style="display:${summary.error ? '' : 'none'}">⚠️ ${summary.error ?? ''}</div>`);
```
## Workstreams by Domain