diff --git a/bin/plugin/commands/changelog.js b/bin/plugin/commands/changelog.js index a7f9f1df0e093b..89de4704362aea 100644 --- a/bin/plugin/commands/changelog.js +++ b/bin/plugin/commands/changelog.js @@ -673,11 +673,12 @@ async function getChangelog( settings ) { return; } - const shouldNest = featureName !== UNKNOWN_FEATURE_FALLBACK_NAME; - // Avoids double nesting such as "Documentation" feature under // the "Documentation" section. - if ( group !== featureName && shouldNest ) { + if ( + group !== featureName && + featureName !== UNKNOWN_FEATURE_FALLBACK_NAME + ) { // Start new