Skip to content

Commit

Permalink
feat: Remove Accordion.handleErrors (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime Vdb authored and iRoachie committed Oct 30, 2018
1 parent 50db0b9 commit 567434e
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions Accordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,6 @@ export default class Accordion extends Component {
}
}

handleErrors = () => {
if (!Array.isArray(this.props.sections)) {
throw new Error('Sections should be an array');
}
};

render() {
let viewProps = {};
let collapsibleProps = {};
Expand All @@ -75,8 +69,6 @@ export default class Accordion extends Component {
}
});

this.handleErrors();

const {
activeSections,
sectionContainerStyle,
Expand Down

0 comments on commit 567434e

Please sign in to comment.