Skip to content

Commit

Permalink
Merge pull request #4720 from storybooks/node-11-fix
Browse files Browse the repository at this point in the history
Fix tests in node 11 by using `Array#sort` correctly
  • Loading branch information
Hypnosphi authored Nov 5, 2018
2 parents 4c757d0 + 0106721 commit 7cba6dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/info/src/components/Story.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ class Story extends Component {
extract(children);

const array = Array.from(types.keys());
array.sort((a, b) => getName(a) > getName(b));
array.sort((a, b) => (getName(a) > getName(b) ? 1 : -1));

propTables = array.map((type, i) => (
// eslint-disable-next-line react/no-array-index-key
Expand Down

0 comments on commit 7cba6dc

Please sign in to comment.