fix(dees-simple-appdash): respect selectedView when loading initial view, falling back to the first tab

This commit is contained in:
2026-02-02 09:27:53 +00:00
parent d82e5603a7
commit f292e7a7f4
3 changed files with 9 additions and 2 deletions

View File

@@ -390,7 +390,8 @@ export class DeesSimpleAppDash extends DeesElement {
const domtools = await this.domtoolsPromise;
super.firstUpdated(_changedProperties);
if (this.viewTabs && this.viewTabs.length > 0) {
await this.loadView(this.viewTabs[0]);
const viewToLoad = this.selectedView || this.viewTabs[0];
await this.loadView(viewToLoad);
}
}