Skip to content

Commit

Permalink
Merge pull request #34 from mpds-io/projections
Browse files Browse the repository at this point in the history
fix matrix
  • Loading branch information
blokhin authored Sep 1, 2024
2 parents fdba15d + e939e0d commit 2b1cce6
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 2b1cce6

Please sign in to comment.