From 3796bb3a9392cb39a4089b8ee86b3537b0474d06 Mon Sep 17 00:00:00 2001 From: "stan.donarise" Date: Mon, 2 Sep 2024 00:17:32 +1100 Subject: [PATCH] fix cube --- plot/cube/cube.view.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plot/cube/cube.view.ts b/plot/cube/cube.view.ts index 0ee2002..a64bcf7 100644 --- a/plot/cube/cube.view.ts +++ b/plot/cube/cube.view.ts @@ -74,7 +74,7 @@ namespace $.$$ { @ $mol_mem heatmap_diif() { const jsons = this.multi_jsons() as typeof $mpds_visavis_plot_cube_json.Value[] - if( jsons.length == 2 ) { + if( jsons?.length == 2 ) { return jsons.every( json => json.payload.points.v.some(val => Math.floor(val) !== val) ) } return false @@ -247,7 +247,7 @@ namespace $.$$ { let scatter = intersects if( indexes.length == 1 ) { - + const index = indexes[ 0 ] scatter = no_intersects.get( index ) ?? new_scatter( this.marker( index ) ) no_intersects.set( index, scatter )