aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/GlobalKeyHandler.ts
diff options
context:
space:
mode:
authorAndy Rickert <andrew_rickert@brown.edu>2020-08-08 21:24:47 -0400
committerAndy Rickert <andrew_rickert@brown.edu>2020-08-08 21:24:47 -0400
commit3bd97210a1112d9d0af802255677caf1de95616c (patch)
tree0f4ec5e2dcaa408eda4a7e6efc874fce4fafdfea /src/client/views/GlobalKeyHandler.ts
parentd4cb5db00da87f8f11794b6272bc3b356dd982bf (diff)
tidying up assorted features, disabling editing doc keys in search, etc
Diffstat (limited to 'src/client/views/GlobalKeyHandler.ts')
-rw-r--r--src/client/views/GlobalKeyHandler.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/views/GlobalKeyHandler.ts b/src/client/views/GlobalKeyHandler.ts
index 3a61e89ce..3b8828ecc 100644
--- a/src/client/views/GlobalKeyHandler.ts
+++ b/src/client/views/GlobalKeyHandler.ts
@@ -331,6 +331,8 @@ export default class KeyManager {
undoBatch(() => {
targetDataDoc[fieldKey] = new List<Doc>([...docList, ...added]);
targetDataDoc[fieldKey + "-lastModified"] = new DateField(new Date(Date.now()));
+ const lastModified = "lastModified";
+ targetDataDoc[lastModified] = new DateField(new Date(Date.now()));
})();
}
}