Skip to content

Commit ee0f045

Browse files
committed
fix(cz-git): allowEmptyScopes not work when not provide scopes
closed #109
1 parent c6d2220 commit ee0f045

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/cz-git/src/shared/utils

‎packages/cz-git/src/shared/utils/util.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export const resovleCustomListTemplate = (
124124
new cz.Separator(),
125125
]
126126
if (!Array.isArray(target) || target.length === 0) {
127-
return result
127+
return !allowEmpty ? result.slice(1) : result
128128
}
129129
else if (defaultValue !== '') {
130130
// pin the defaultValue to the top

0 commit comments

Comments
 (0)