aboutsummaryrefslogtreecommitdiff
path: root/src/client/DocServer.ts
diff options
context:
space:
mode:
authorTyler Schicke <tyler_schicke@brown.edu>2019-07-10 11:58:14 -0400
committerTyler Schicke <tyler_schicke@brown.edu>2019-07-10 11:58:14 -0400
commitbb55fa2d6e4f9bec26b2eea3c2df50b7bc584c46 (patch)
tree9138414f1880675084e852ce50ae4f42622e96d1 /src/client/DocServer.ts
parentdfd3427bf23c3c8df5c78fd3e993588800771269 (diff)
parent2cd8ac79b4731ca98aafe8a92fa6fb132fe9e86f (diff)
Merge branch 'master' of github-tsch-brown:browngraphicslab/Dash-Web
Diffstat (limited to 'src/client/DocServer.ts')
-rw-r--r--src/client/DocServer.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/DocServer.ts b/src/client/DocServer.ts
index 785a0acf5..b7b03f04c 100644
--- a/src/client/DocServer.ts
+++ b/src/client/DocServer.ts
@@ -15,7 +15,9 @@ export namespace DocServer {
export function makeReadOnly() {
if (_isReadOnly) return;
_isReadOnly = true;
- _CreateField = emptyFunction;
+ _CreateField = field => {
+ _cache[field[Id]] = field;
+ };
_UpdateField = emptyFunction;
_respondToUpdate = emptyFunction;
}