fix cannot create transaction tag in transaction edit dialog

This commit is contained in:
MaysWind
2025-01-28 00:40:42 +08:00
parent 51c4e06e59
commit 50c3fee7dc
2 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -38,8 +38,8 @@ export class TransactionTag implements TransactionTagInfoResponse {
return tags;
}
public static createNewTag(): TransactionTag {
return new TransactionTag('', '', 0, false);
public static createNewTag(name?: string): TransactionTag {
return new TransactionTag('', name || '', 0, false);
}
}