Skip to content

Commit 6f123d1

Browse files
author
ci-bot
committed
fix getting active tab
1 parent 69f1b2b commit 6f123d1

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

apps/remix-ide-e2e/src/tests/migrateFileSystem.test.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { NightwatchBrowser } from 'nightwatch'
33

44

5-
module.exports = {
5+
const tests = {
66
'@disabled': true,
77
'Should load the testmigration url #group1': function (browser: NightwatchBrowser) {
88
browser.url('http://127.0.0.1:8080?e2e_testmigration=true')
@@ -137,3 +137,11 @@ module.exports = {
137137
},
138138

139139
}
140+
141+
const isFirefox = browser.options.desiredCapabilities?.browserName === 'firefox'
142+
143+
if (isFirefox) {
144+
module.exports = tests
145+
} else {
146+
module.exports = {}
147+
}

libs/remix-ui/tabs/src/lib/remix-ui-tabs.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ export const TabsUI = (props: TabsUIProps) => {
162162

163163
const active = () => {
164164
if (currentIndexRef.current < 0) return ''
165+
if (!tabs.current[currentIndexRef.current]) return ''
165166
return tabs.current[currentIndexRef.current].name
166167
}
167168

0 commit comments

Comments
 (0)