Skip to content

Commit

Permalink
Merge pull request #217 from hlxsites/maxed/warnings
Browse files Browse the repository at this point in the history
console warnings
  • Loading branch information
maxakuru authored Oct 17, 2023
2 parents 8f1cbd4 + 0c2994b commit 942bdad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,10 @@ const store = new (class {
return book;
});

if (!this.mainBook) {
console.warn('page configured as book, but missing main book; possible metadata sheet issue');
}

// exclude main book from additionalBooks
this.additionalBooks = this.allBooks.filter((b) => !b.mainBook);
}
Expand Down

0 comments on commit 942bdad

Please sign in to comment.