From e64fde58ac462da1fe5fd14f0deabc5154c2fd6a Mon Sep 17 00:00:00 2001 From: Colleen Reilly Date: Wed, 15 Jan 2025 10:10:41 -0600 Subject: [PATCH] Restore logic --- server/routes/termdb.violin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/routes/termdb.violin.ts b/server/routes/termdb.violin.ts index b9ad225d90..5e25e39516 100644 --- a/server/routes/termdb.violin.ts +++ b/server/routes/termdb.violin.ts @@ -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,