Skip to content

Commit

Permalink
Restore logic
Browse files Browse the repository at this point in the history
  • Loading branch information
creilly8 committed Jan 15, 2025
1 parent f2f1962 commit e64fde5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/routes/termdb.violin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export async function trigger_getViolinPlotData(
const sampleType = `All ${data.sampleType?.plural_name || 'samples'}`
if (data.error) throw data.error
//get ordered labels to sort keys in key2values
if (q.divideTw.$id && data.refs.byTermId[q.divideTw.$id]) {
if (q.divideTw && data.refs.byTermId[q.divideTw.$id]) {
data.refs.byTermId[q.divideTw.$id].orderedLabels = getOrderedLabels(
q.divideTw,
data.refs.byTermId[q.divideTw.$id]?.bins,
Expand Down

0 comments on commit e64fde5

Please sign in to comment.