Skip to content

Commit

Permalink
fix matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
stan-donarise committed Aug 31, 2024
1 parent 7471586 commit e939e0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plot/matrix/matrix.view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ namespace $.$$ {
return 'entries'
}

const datesets_quantity = this.multi_jsons().length
if( datesets_quantity == 2 && heatmap_datasets.size == 2 ) {
const datesets_quantity = this.multi_jsons()?.length || 1
if( datesets_quantity == heatmap_datasets.size && heatmap_datasets.size <= 2 ) {
return 'heatmap'
}

Expand Down

0 comments on commit e939e0d

Please sign in to comment.