diff --git a/plugins/hic/src/HicRenderer/makeImageData.ts b/plugins/hic/src/HicRenderer/makeImageData.ts index 4185dc730f..5bda6b503d 100644 --- a/plugins/hic/src/HicRenderer/makeImageData.ts +++ b/plugins/hic/src/HicRenderer/makeImageData.ts @@ -41,6 +41,10 @@ export async function makeImageData( regions, pluginManager, } = props + + const { statusCallback = () => {} } = props + // @ts-expect-error + statusCallback('Drawing Hi-C matrix') const region = regions[0]! const { dataAdapter } = await getAdapter( pluginManager, diff --git a/plugins/variants/src/MultiLinearVariantMatrixRenderer/makeImageData.ts b/plugins/variants/src/MultiLinearVariantMatrixRenderer/makeImageData.ts index fa42cfd030..716ede6319 100644 --- a/plugins/variants/src/MultiLinearVariantMatrixRenderer/makeImageData.ts +++ b/plugins/variants/src/MultiLinearVariantMatrixRenderer/makeImageData.ts @@ -51,6 +51,10 @@ export function makeImageData({ sources, features, } = renderArgs + + const { statusCallback = () => {} } = renderArgs + // @ts-expect-error + statusCallback('Drawing variant matrix') const h = canvasHeight / sources.length const mafs = getFeaturesThatPassMinorAlleleFrequencyFilter( features.values(), diff --git a/plugins/variants/src/VcfTabixAdapter/VcfTabixAdapter.ts b/plugins/variants/src/VcfTabixAdapter/VcfTabixAdapter.ts index d5ce70d333..e7b2c436ed 100644 --- a/plugins/variants/src/VcfTabixAdapter/VcfTabixAdapter.ts +++ b/plugins/variants/src/VcfTabixAdapter/VcfTabixAdapter.ts @@ -73,7 +73,7 @@ export default class VcfTabixAdapter extends BaseFeatureDataAdapter { public getFeatures(query: NoAssemblyRegion, opts: BaseOptions = {}) { return ObservableCreate(async observer => { const { refName, start, end } = query - const { statusCallback = () => {} } = opts || {} + const { statusCallback = () => {} } = opts const { vcf, parser } = await this.configure() await updateStatus('Downloading variants', statusCallback, () => diff --git a/plugins/variants/src/shared/ColorLegend.tsx b/plugins/variants/src/shared/ColorLegend.tsx index 22460b094a..f89f1d3f99 100644 --- a/plugins/variants/src/shared/ColorLegend.tsx +++ b/plugins/variants/src/shared/ColorLegend.tsx @@ -40,7 +40,7 @@ const ColorLegend = observer(function ({ {color ? (