Skip to content

Commit

Permalink
RcloneDashboard: Fix failing render
Browse files Browse the repository at this point in the history
  • Loading branch information
negative0 committed Aug 16, 2019
1 parent a95c0fb commit acf9326
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/views/RCloneDashboard/RCloneDashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class RCloneDashboard extends React.Component {
};
getOptionViewCards = (head, value) => {
const elements = [];
if(value)
for (const [ele, val] of Object.entries(value)) {
elements.push((
<FormGroup key={head + "$" + ele} row>
Expand All @@ -81,6 +82,7 @@ class RCloneDashboard extends React.Component {
}

const elements = [];
if(!hasError && options)
for (const [head, value] of Object.entries(options)) {
elements.push((
<Col sm={12} lg={4} md={6} key={head}>
Expand Down

0 comments on commit acf9326

Please sign in to comment.