From e992353a995feda76ba9a9dd74bda59a82bb7207 Mon Sep 17 00:00:00 2001 From: NullVoxPopuli Date: Fri, 17 Dec 2021 15:37:48 -0500 Subject: [PATCH] docfyConfig is not guaranteed to exist --- packages/ember/src/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/ember/src/index.ts b/packages/ember/src/index.ts index 129f63e..df9b4dc 100644 --- a/packages/ember/src/index.ts +++ b/packages/ember/src/index.ts @@ -140,9 +140,9 @@ module.exports = { cacheKeyForTree(treeType: string): string { switch (treeType) { case 'app': { - const sources = (this.docfyConfig as DocfyConfig).sources - .map((item) => item.root) - .join(','); + const sources = (this.docfyConfig as DocfyConfig)?.sources + ?.map((item) => item.root) + ?.join(','); return cacheKeyForTree(treeType, this, [sources]); } default: