From 99307c8a1c6748617613eecc832ec094442a93ea Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Mon, 6 Sep 2021 11:59:01 +0530 Subject: [PATCH] fix for reopening same file in two tabs in editor --- apps/remix-ide/src/app/tabs/testTab/testTab.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/remix-ide/src/app/tabs/testTab/testTab.js b/apps/remix-ide/src/app/tabs/testTab/testTab.js index 7b6e1fd4fc..93cb49516b 100644 --- a/apps/remix-ide/src/app/tabs/testTab/testTab.js +++ b/apps/remix-ide/src/app/tabs/testTab/testTab.js @@ -68,7 +68,8 @@ class TestTabLogic { cb(e.message) } for (var file in files) { - if (/.(_test.sol)$/.exec(file)) tests.push(provider.type + '/' + file) + const filepath = provider && provider.type ? provider.type + '/' + file : file + if (/.(_test.sol)$/.exec(file)) tests.push(filepath) } cb(null, tests, this.currentPath) }