Skip to content

Commit

Permalink
fix(cz-git): allowEmptyScopes not work when not provide scopes
Browse files Browse the repository at this point in the history
closed #109
  • Loading branch information
Zhengqbbb committed Mar 22, 2023
1 parent c6d2220 commit ee0f045
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cz-git/src/shared/utils/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export const resovleCustomListTemplate = (
new cz.Separator(),
]
if (!Array.isArray(target) || target.length === 0) {
return result
return !allowEmpty ? result.slice(1) : result
}
else if (defaultValue !== '') {
// pin the defaultValue to the top
Expand Down

0 comments on commit ee0f045

Please sign in to comment.