aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2023-04-27 23:11:25 -0400
committerbobzel <zzzman@gmail.com>2023-04-27 23:11:25 -0400
commitc6fc5badaac451f16d9a537c8bda84e359bb0182 (patch)
tree056235960de3006e1e7aa54bb7a71cffa4b987e4
parentc27fcf300d72248e82d722e1b7ded9e0ca07f657 (diff)
another fix for fieldInfos
-rw-r--r--src/client/views/collections/collectionSchema/CollectionSchemaView.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx b/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx
index 3dff8d769..3f7e037d4 100644
--- a/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx
+++ b/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx
@@ -133,8 +133,8 @@ export class CollectionSchemaView extends CollectionSubView() {
case 'splice':
// prettier-ignore
(change as any).added.forEach((doc: Doc) => // for each document added
- Doc.GetAllPrototypes(doc).forEach(proto => // for all of its prototypes (and itself)
- Object.keys(proto.value as Doc).forEach(action(key => // check if any of its keys are new, and add them
+ Doc.GetAllPrototypes(doc.value as Doc).forEach(proto => // for all of its prototypes (and itself)
+ Object.keys(proto).forEach(action(key => // check if any of its keys are new, and add them
!this.fieldInfos.get(key) && this.fieldInfos.set(key, new FInfo(''))))));
break;
case 'update': //let oldValue = change.oldValue; // fill this in if the entire child list will ever be reassigned with a new list