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:
parent
b76849a60d
commit
1bcc46ea3f
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue