We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 719c44d commit c656a96Copy full SHA for c656a96
src/sidebarApps/index.js
@@ -56,7 +56,8 @@ function remove(id) {
56
app.remove();
57
apps.splice(apps.indexOf(app), 1);
58
if (wasActive && apps.length > 0) {
59
- setActiveApp(apps[0].id);
+ const preferredApp = apps.find((app) => app.id === currentSection);
60
+ setActiveApp(preferredApp?.id || apps[0].id);
61
return;
62
}
63
0 commit comments