aboutsummaryrefslogtreecommitdiff
path: root/src/server/authentication/models/current_user_utils.ts
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-12-19 16:27:13 -0500
committerbob <bcz@cs.brown.edu>2019-12-19 16:27:13 -0500
commit306ea362cad253764bc632d6274ae71a45ecd85c (patch)
treedd1e01ffe5828be5a8b36b4e3dd4798a2cf5137d /src/server/authentication/models/current_user_utils.ts
parent8907ea70352d07c80233ff4c3e06c9c543c5be83 (diff)
compiler fixes. fix for text box titles on templates
Diffstat (limited to 'src/server/authentication/models/current_user_utils.ts')
-rw-r--r--src/server/authentication/models/current_user_utils.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/authentication/models/current_user_utils.ts b/src/server/authentication/models/current_user_utils.ts
index 120c75fe8..220c37e2b 100644
--- a/src/server/authentication/models/current_user_utils.ts
+++ b/src/server/authentication/models/current_user_utils.ts
@@ -80,7 +80,7 @@ export class CurrentUserUtils {
if (dragset) {
const dragdocs = await Cast(dragset.data, listSpec(Doc));
if (dragdocs) {
- const dragDocs = await Promise.all(dragdocs.map(async d => await d));
+ const dragDocs = await Promise.all(dragdocs);
const newButtons = this.setupCreatorButtons(doc, dragDocs.map(d => StrCast(d.title)));
newButtons.map(nb => Doc.AddDocToList(dragset, "data", nb));
}