fix(boards): not correctly navigating to the newly created board #5211

This commit is contained in:
Johannes Millan 2025-10-07 18:02:22 +02:00
parent eeb8faf365
commit 6dc1922fb9

View file

@ -65,7 +65,10 @@ export class BoardsComponent {
// NOTE: since the index number does not change (the add tab index is at the same index as the newly added tab) we need to do this in two steps
const newIndex = (this.boards()?.length || 1) - 1;
setTimeout(() => {
this.selectedTabIndex.set(newIndex);
this.selectedTabIndex.set(newIndex + 1);
setTimeout(() => {
this.selectedTabIndex.set(newIndex);
}, 10);
});
}