mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Fix bug in uniqueTitle
`uniqueTitle` was returning a numbered title even when not necessary
This commit is contained in:
parent
c62396e389
commit
9ec3574ff6
1 changed files with 5 additions and 1 deletions
|
|
@ -1287,7 +1287,11 @@ Boards.uniqueTitle = title => {
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
return `${base} [${num + 1}]`;
|
if (num > 0) {
|
||||||
|
return `${base} [${num + 1}]`;
|
||||||
|
}
|
||||||
|
|
||||||
|
return title;
|
||||||
};
|
};
|
||||||
|
|
||||||
Boards.userSearch = (
|
Boards.userSearch = (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue