Exclude instruments with no notes

This commit is contained in:
Geomitron
2025-03-10 16:23:24 -05:00
parent 4e3d3ec507
commit 3881a69176

View File

@@ -230,6 +230,7 @@ export class ChartSidebarComponent implements OnInit {
public get instruments(): Instrument[] {
if (!this.selectedChart) { return [] }
return _.chain(this.selectedChart.notesData.noteCounts)
.filter(nc => nc.count > 0)
.map(nc => nc.instrument)
.uniq()
.sortBy(i => instruments.indexOf(i))