Skip to content

Commit

Permalink
Fix logic checking for null autoSql in BB decoding. Fixes #1865
Browse files Browse the repository at this point in the history
  • Loading branch information
jrobinso committed Aug 8, 2024
1 parent 5400921 commit e6ce347
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/bigwig/bbDecoders.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {IGVColor} from "../../node_modules/igv-utils/src/index.js"

function getDecoder(definedFieldCount, fieldCount, autoSql, format) {

if ("biginteract" === format || (autoSql && ('chromatinInteract' === autoSql.table) || 'interact' === autoSql.table)) {
if ("biginteract" === format || (autoSql && ('chromatinInteract' === autoSql.table || 'interact' === autoSql.table))) {
return decodeInteract
} else {
const standardFieldCount = definedFieldCount - 3
Expand Down

0 comments on commit e6ce347

Please sign in to comment.