@jbrowse/core 4.0.2 → 4.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -166,7 +166,7 @@ export function TrackConfigurationReference(schemaType) {
|
|
|
166
166
|
const trackRef = types.reference(schemaType, {
|
|
167
167
|
get(id, parent) {
|
|
168
168
|
const session = getSession(parent);
|
|
169
|
-
let ret = session.
|
|
169
|
+
let ret = session.getTracksById()[id];
|
|
170
170
|
if (!ret) {
|
|
171
171
|
ret = resolveIdentifier(schemaType, getRoot(parent), id);
|
|
172
172
|
}
|
package/esm/util/tracks.js
CHANGED
|
@@ -165,7 +165,7 @@ export function showTrackGeneric(self, trackId, initialSnapshot = {}, displayIni
|
|
|
165
165
|
if (found) {
|
|
166
166
|
return found;
|
|
167
167
|
}
|
|
168
|
-
const conf = session.
|
|
168
|
+
const conf = session.getTracksById()[trackId];
|
|
169
169
|
if (!conf) {
|
|
170
170
|
throw new Error(`Could not resolve identifier "${trackId}"`);
|
|
171
171
|
}
|
|
@@ -41,7 +41,7 @@ export interface JBrowsePlugin {
|
|
|
41
41
|
}
|
|
42
42
|
export type DialogComponentType = React.LazyExoticComponent<React.FC<any>> | React.FC<any>;
|
|
43
43
|
export interface AbstractSessionModel extends AbstractViewContainer {
|
|
44
|
-
|
|
44
|
+
getTracksById: () => Record<string, AnyConfigurationModel>;
|
|
45
45
|
jbrowse: IAnyStateTreeNode;
|
|
46
46
|
drawerPosition?: string;
|
|
47
47
|
configuration: AnyConfigurationModel;
|