From 3d55d2437715e4648b7813c6cb27aa0e278d0e49 Mon Sep 17 00:00:00 2001 From: PhilReact Date: Fri, 29 Sep 2023 01:00:49 -0500 Subject: [PATCH] change currentTab when removing tab --- core/src/components/show-plugin.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/src/components/show-plugin.js b/core/src/components/show-plugin.js index 6b6649bb..c6ff4d34 100644 --- a/core/src/components/show-plugin.js +++ b/core/src/components/show-plugin.js @@ -432,7 +432,9 @@ class ShowPlugin extends connect(store)(LitElement) {
${icon} @@ -671,7 +673,7 @@ class ShowPlugin extends connect(store)(LitElement) { let iconId = '' this.tabs = this.tabs.filter((tab, tIndex) => tIndex !== index) - + this.currentTab = this.tabs.length - 1; const tabD = this.tabs.length - 1 const plugObj = this.tabs[tabD].url