mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-28 10:33:02 -05:00
Do not allow renaming to an empty category or group name (#3463)
* Do not allow renaming to an emoty category or group name * Release notes
This commit is contained in:
committed by
GitHub
parent
7702ee4f4f
commit
37d391b4fc
@@ -45,7 +45,7 @@ export function CategoryGroupMenuModal({
|
||||
const notes = useNotes(group.id);
|
||||
|
||||
const onRename = newName => {
|
||||
if (newName !== group.name) {
|
||||
if (newName && newName !== group.name) {
|
||||
onSave?.({
|
||||
...group,
|
||||
name: newName,
|
||||
|
||||
@@ -43,7 +43,7 @@ export function CategoryMenuModal({
|
||||
const originalNotes = useNotes(category.id);
|
||||
|
||||
const onRename = newName => {
|
||||
if (newName !== category.name) {
|
||||
if (newName && newName !== category.name) {
|
||||
onSave?.({
|
||||
...category,
|
||||
name: newName,
|
||||
|
||||
6
upcoming-release-notes/3463.md
Normal file
6
upcoming-release-notes/3463.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Bugfix
|
||||
authors: [joel-jeremy]
|
||||
---
|
||||
|
||||
Mobile - Do not allow renaming category or group to an empty name.
|
||||
Reference in New Issue
Block a user