Skip to content

Commit 78ce43d

Browse files
Handle zero metrics
1 parent 67e7188 commit 78ce43d

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

webapp/TargetedMS/js/QCTrendPlotPanel.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -444,8 +444,10 @@ Ext4.define('LABKEY.targetedms.QCTrendPlotPanel', {
444444
items: toolbarItems
445445
});
446446

447-
//hiding the show All series in a single plot checkbox for run scoped metrics
448-
this.showAllSeriesCheckbox(this.getMetricPropsById(this.metric).precursorScoped, location-1);
447+
if (this.metric) {
448+
//hiding the show All series in a single plot checkbox for run scoped metrics
449+
this.showAllSeriesCheckbox(this.getMetricPropsById(this.metric).precursorScoped, location - 1);
450+
}
449451
}
450452

451453
return this.otherPlotOptionsToolbar;
@@ -889,7 +891,7 @@ Ext4.define('LABKEY.targetedms.QCTrendPlotPanel', {
889891
value: primary ? this.metric : this.metric2,
890892
forceSelection: true,
891893
allowBlank: !primary,
892-
emptyText: 'No second metric',
894+
emptyText: primary ? 'No metric' : 'No second metric',
893895
editable: false,
894896
listeners: {
895897
scope: this,

0 commit comments

Comments
 (0)