Skip to content

Commit

Permalink
fix: fix a bug where storybook without any stories runs forever
Browse files Browse the repository at this point in the history
  • Loading branch information
hipstersmoothie authored and chrisvxd committed Sep 17, 2019
1 parent 56ebd93 commit 1ff355e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/server/PagePool.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ export default class PagePool {

execute() {
return new Promise(resolve => {
if (this.fns.length === 0) {
return resolve();
}

for (let i = 0; i < this.fns.length; i++) {
const fn = this.fns[i];

Expand Down

0 comments on commit 1ff355e

Please sign in to comment.