From af8a1461ee3e24f66deffdaef0ab46c0089d09c1 Mon Sep 17 00:00:00 2001 From: Airen Zaldivar Date: Wed, 16 Oct 2024 10:42:06 -0500 Subject: [PATCH] Fixed bug --- client/plots/profilePlot.js | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/client/plots/profilePlot.js b/client/plots/profilePlot.js index 0ea048ef57..2c76476f63 100644 --- a/client/plots/profilePlot.js +++ b/client/plots/profilePlot.js @@ -395,14 +395,15 @@ export class profilePlot { } } } - inputs.unshift({ - label: 'Site', - type: 'dropdown', - chartType, - options: this.sites, - settingsKey: 'site', - callback: value => this.setSite(value) - }) + if (this.sites) + inputs.unshift({ + label: 'Site', + type: 'dropdown', + chartType, + options: this.sites, + settingsKey: 'site', + callback: value => this.setSite(value) + }) } setFilterValue(key, value) {