From c1eb48dd9872db455c3e9993f2a7e6f9bf8d7382 Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 10 Nov 2021 16:44:32 +0100 Subject: [PATCH] fix tabs appearing twice --- apps/remix-ide/src/app/panels/tab-proxy.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/apps/remix-ide/src/app/panels/tab-proxy.js b/apps/remix-ide/src/app/panels/tab-proxy.js index 4f5a030e04..db83672020 100644 --- a/apps/remix-ide/src/app/panels/tab-proxy.js +++ b/apps/remix-ide/src/app/panels/tab-proxy.js @@ -227,22 +227,6 @@ export class TabProxy extends Plugin { tooltip: name, iconClass: helper.getPathIcon(name) }) - formatPath.shift() - if (formatPath.length > 0) { - const duplicateTabName = this.loadedTabs.find(({ title }) => title === formatPath.join('/')).name - const duplicateTabPath = duplicateTabName.split('/') - const duplicateTabFormatPath = [...duplicateTabPath].reverse() - const duplicateTabTitle = duplicateTabFormatPath.slice(0, titleLength).reverse().join('/') - - this.loadedTabs.push({ - id: duplicateTabName, - name: duplicateTabName, - title: duplicateTabTitle, - icon, - tooltip: duplicateTabName, - iconClass: helper.getPathIcon(duplicateTabName) - }) - } break } }