Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Commit c330eb3

Browse files
committed
Remove tabIndex field (#5751)
1 parent 72eb93b commit c330eb3

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

src/actions/sources/select.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,18 +79,18 @@ export function selectSourceURL(
7979
* @memberof actions/sources
8080
* @static
8181
*/
82-
export function selectSource(sourceId: string, tabIndex: string = "") {
82+
export function selectSource(sourceId: string) {
8383
return async ({ dispatch }: ThunkArgs) => {
8484
const location = createLocation({ sourceId });
85-
return await dispatch(selectLocation(location, tabIndex));
85+
return await dispatch(selectLocation(location));
8686
};
8787
}
8888

8989
/**
9090
* @memberof actions/sources
9191
* @static
9292
*/
93-
export function selectLocation(location: Location, tabIndex: string = "") {
93+
export function selectLocation(location: Location) {
9494
return async ({ dispatch, getState, client }: ThunkArgs) => {
9595
if (!client) {
9696
// No connection, do nothing. This happens when the debugger is
@@ -114,7 +114,6 @@ export function selectLocation(location: Location, tabIndex: string = "") {
114114
dispatch({
115115
type: "SELECT_SOURCE",
116116
source: source.toJS(),
117-
tabIndex,
118117
location
119118
});
120119

src/actions/types.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,7 @@ type SourceAction =
142142
| {
143143
type: "SELECT_SOURCE",
144144
source: Source,
145-
location?: { line?: number, column?: number },
146-
tabIndex?: number
145+
location?: { line?: number, column?: number }
147146
}
148147
| { type: "SELECT_SOURCE_URL", url: string, line?: number }
149148
| {

0 commit comments

Comments
 (0)