Fix bug in uniqueTitle

`uniqueTitle` was returning a numbered title even when not necessary
This commit is contained in:
John R. Supplee 2021-02-03 14:03:33 +02:00
parent c62396e389
commit 9ec3574ff6

View file

@ -1287,7 +1287,11 @@ Boards.uniqueTitle = title => {
},
);
return `${base} [${num + 1}]`;
if (num > 0) {
return `${base} [${num + 1}]`;
}
return title;
};
Boards.userSearch = (