From f86ac1f698864e95e59e6b1c74b218b426e866bc Mon Sep 17 00:00:00 2001 From: Seung Park Date: Fri, 17 Feb 2023 16:10:18 -0500 Subject: [PATCH] add nullish check for associated products value (#772) --- gatsby-node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gatsby-node.js b/gatsby-node.js index 81ed92f2e..a291f05a8 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -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 = {