Skip to content

Commit

Permalink
fix cube
Browse files Browse the repository at this point in the history
  • Loading branch information
stan-donarise committed Sep 1, 2024
1 parent 9fe1f45 commit 3796bb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plot/cube/cube.view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 )
Expand Down

0 comments on commit 3796bb3

Please sign in to comment.