fix: trim collection name on save rather than on change (#2962)
* fix: trim collection name on save rather than on change * move trim to server
This commit is contained in:
@@ -536,7 +536,7 @@ router.post("collections.update", auth(), async (ctx) => {
|
||||
let sharingChanged = false;
|
||||
|
||||
if (name !== undefined) {
|
||||
collection.name = name;
|
||||
collection.name = name.trim();
|
||||
}
|
||||
|
||||
if (description !== undefined) {
|
||||
|
||||
Reference in New Issue
Block a user