mirror of
https://github.com/wekan/wekan.git
synced 2026-02-20 23:14:07 +01:00
Fix createWorkspace Meteor method fails with "Expected string, got undefined"
Thanks to TheBoysenBuilds and xet7 ! Fixes #6150
This commit is contained in:
parent
f6f16608dd
commit
06d418b12b
1 changed files with 3 additions and 1 deletions
|
|
@ -1948,7 +1948,9 @@ Meteor.methods({
|
|||
user.toggleDesktopHandles(user.hasShowDesktopDragHandles());
|
||||
},
|
||||
// Spaces: create a new space under parentId (or root when null)
|
||||
createWorkspace({ parentId = null, name }) {
|
||||
createWorkspace(params) {
|
||||
check(params, Object);
|
||||
const { parentId = null, name } = params;
|
||||
check(parentId, Match.OneOf(String, null));
|
||||
check(name, String);
|
||||
if (!this.userId) throw new Meteor.Error('not-logged-in');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue