Skip to content

Commit

Permalink
Merge pull request meshery#2562 from vineethvanga18/vineeth/grafana-b…
Browse files Browse the repository at this point in the history
…oards-loading-issue

small ui fix for grafana boards
  • Loading branch information
leecalcote committed Mar 16, 2021
2 parents 02f611b + ac8fc81 commit 80fe70f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/components/GrafanaSelectionComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class GrafanaSelectionComponent extends Component {
this.setState({
grafanaBoard: newVal,
panels: board.panels,
selectedPanels: board.panels.map((panel) => panel.id), // selecting all panels by default
selectedPanels: board.panels?.map((panel) => panel.id), // selecting all panels by default
templateVars: board.template_vars && board.template_vars.length > 0 ? board.template_vars : [],
templateVarOptions: [],
selectedTemplateVars: [],
Expand Down Expand Up @@ -319,7 +319,7 @@ class GrafanaSelectionComponent extends Component {
),
}}
>
{panels.map((panel) => (
{panels?.map((panel) => (
<MenuItem key={`panel_-__-${panel.id}`} value={panel.id}>{panel.title}</MenuItem>
))}
</TextField>
Expand Down

0 comments on commit 80fe70f

Please sign in to comment.