Skip to content

Commit

Permalink
add nullish check for associated products value (#772)
Browse files Browse the repository at this point in the history
  • Loading branch information
seungpark authored Feb 17, 2023
1 parent 81b3889 commit f86ac1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ exports.createPages = async ({ actions }) => {
project: manifestMetadata.project,
branch: manifestMetadata.branch,
};
if (isAssociatedProduct || manifestMetadata?.associated_products.length) {
if (isAssociatedProduct || manifestMetadata?.associated_products?.length) {
filter['is_merged_toc'] = true;
}
const findOptions = {
Expand Down

0 comments on commit f86ac1f

Please sign in to comment.