Skip to content

Commit d69ff80

Browse files
st3inybackportbot[bot]
authored andcommitted
fix(dashboard): don't reload hidden widgets
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud> [skip ci]
1 parent 3b97190 commit d69ff80

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

apps/dashboard/src/DashboardApp.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,10 @@ export default {
290290
for (const widget of Object.values(this.apiWidgets)) {
291291
if (widget.reload_interval > 0) {
292292
setInterval(async () => {
293+
if (!this.layout.includes(widget.id)) {
294+
return
295+
}
296+
293297
await this.fetchApiWidgetItems([widget.id], true)
294298
}, widget.reload_interval * 1000)
295299
}

0 commit comments

Comments
 (0)