1
0
Fork 0

It is now also possible to add non sharded collections (which means adding a sharded one with only one key

This commit is contained in:
Michael Hackstein 2014-03-04 13:25:19 +01:00
parent 4d9c8ff9d9
commit 22858b1ac1
1 changed files with 2 additions and 1 deletions

View File

@ -84,7 +84,8 @@
shards = parseInt(shards);
}
shardBy = _.pluck($('#new-collection-shardBy').select2("data"), "text");
if (shardBy === []) {
console.log(shardBy);
if (shardBy.length === 0) {
shardBy.push("_key");
}
}