From 676803e0aacb50f4a0c74567318eb28dcac9ca94 Mon Sep 17 00:00:00 2001 From: Lloyd Brookes Date: Sun, 8 Sep 2024 12:46:40 +0100 Subject: [PATCH] Fixed a case where the 'Jsdoc data looks malformed' warning was displayed unnecessarily. --- helpers/ddata.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/ddata.js b/helpers/ddata.js index 0f95e10..d558026 100644 --- a/helpers/ddata.js +++ b/helpers/ddata.js @@ -483,7 +483,7 @@ return the identifiers which are a `memberof` this one. Exclude externals withou */ function _children (options) { if (!this.id) return [] - if (this.id === this.memberof) { + if (this.id && this.memberof && this.id === this.memberof) { if (!malformedDataWarningIssued) { console.warn('Jsdoc data looks malformed. Typically, this can be fixed by ensuring the sourcecode file has a `@module tag`. ') console.warn('Please see the "Document an ES2015 module" section in the wiki')