Skip to content

Commit 22dc413

Browse files
committed
Ensure selected track is active for VariantTable
1 parent 011c8e1 commit 22dc413

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

jbrowse/src/client/JBrowse/VariantTable/VariantTable.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ function VariantTable() {
6868
setTheme(createJBrowseTheme(readConfObject(state.config.configuration, 'theme')))
6969
}
7070

71-
fetchSession(queryParam, sessionId, nativePlugins, refTheme, setState, true, undefined, undefined, successCallback, trackId)
71+
// NOTE: pass trackId for activeTracks, to ensure view.tracks contains it
72+
fetchSession(queryParam, sessionId, nativePlugins, refTheme, setState, true, [trackId], undefined, successCallback, trackId)
7273
}, []);
7374

7475
// Error handle and then render the component

jbrowse/src/client/JBrowse/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ function generateViewState(genome, plugins, nativePlugins){
204204
export function navigateToTable(sessionId, locString, trackId, track?: any) {
205205
const sampleFilterURL = serializeSampleFilters(track)
206206
const infoFilterURL = serializeInfoFilters(track)
207-
window.location.href = ActionURL.buildURL("jbrowse", "variantTable.view", null, {session: sessionId, location: locString, trackId: trackId, sampleFilters: sampleFilterURL, infoFilters: infoFilterURL})
207+
window.location.href = ActionURL.buildURL("jbrowse", "variantTable.view", null, {session: sessionId, location: locString, trackId: trackId, activeTracks: trackId, sampleFilters: sampleFilterURL, infoFilters: infoFilterURL})
208208
}
209209

210210
export function navigateToBrowser(sessionId, locString, trackId?: string, track?: any) {

0 commit comments

Comments
 (0)