Skip to content

Commit 3ffb456

Browse files
committed
Bugfix to JBrowse displayId
1 parent 58b0e14 commit 3ffb456

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

jbrowse/src/org/labkey/jbrowse/model/JBrowseSession.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ public JSONObject getDefaultSessionJson(List<JsonFile> tracks, @Nullable List<St
318318
displaysArr.put(new JSONObject(){{
319319
String displayType = jf.getDisplayType();
320320
put("type", displayType);
321-
put("configuration", jf.getObjectId() + "-" + displayType);
321+
put("configuration", jf.getJsonTrackId() + "-" + displayType);
322322
}});
323323
put("displays", displaysArr);
324324
}});

jbrowse/src/org/labkey/jbrowse/model/JsonFile.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ private JSONObject getVcfTrack(Logger log, ExpData targetFile, ReferenceGenome r
531531
ret.put("displays", new JSONArray(){{
532532
put(new JSONObject(){{
533533
put("type", "ExtendedVariantDisplay");
534-
put("displayId", getObjectId() + "-ExtendedVariantDisplay");
534+
put("displayId", getJsonTrackId() + "-ExtendedVariantDisplay");
535535
put("maxDisplayedBpPerPx", 2000);
536536
put("mouseover", "jexl:'Position: ' + formatWithCommas(get(feature,'POS'))");
537537
put("renderer", new JSONObject(){{

0 commit comments

Comments
 (0)