mirror of
https://github.com/youzan/vant.git
synced 2025-10-16 08:00:34 +00:00
fix(cli): item.subject may be null
This commit is contained in:
@@ -37,7 +37,7 @@ function transform(item: any) {
|
||||
|
||||
if (item.references.length) {
|
||||
item.references.forEach((ref: any) => {
|
||||
if (ref.issue) {
|
||||
if (ref.issue && item.subject) {
|
||||
item.subject = item.subject.replace(` (#${ref.issue})`, '');
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user