diff options
author | usodhi <61431818+usodhi@users.noreply.github.com> | 2020-06-29 17:00:41 +0530 |
---|---|---|
committer | usodhi <61431818+usodhi@users.noreply.github.com> | 2020-06-29 17:00:41 +0530 |
commit | 9c0a250fd412c46861f72d8bb7cc5535b101c0fa (patch) | |
tree | ff24809b94f06b3fb12ce47dbd94e14cdc615baa /src/fields/List.ts | |
parent | 6ad7fac6342204bc489ef49cb3ba8f450bfa3824 (diff) | |
parent | 29f9cedd937697c56ce3b400931b26c82a23721d (diff) |
merge conflicts resolved
Diffstat (limited to 'src/fields/List.ts')
-rw-r--r-- | src/fields/List.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/fields/List.ts b/src/fields/List.ts index fdabea365..a9da75abb 100644 --- a/src/fields/List.ts +++ b/src/fields/List.ts @@ -291,9 +291,10 @@ class ListImpl<T extends Field> extends ObjectField { this.___fields = value; for (const key in value) { const field = value[key]; - if (!(field instanceof ObjectField)) continue; - (field as ObjectField)[Parent] = this[Self]; - (field as ObjectField)[OnUpdate] = updateFunction(this[Self], key, field, this[SelfProxy]); + if (field instanceof ObjectField) { + field[Parent] = this[Self]; + field[OnUpdate] = updateFunction(this[Self], key, field, this[SelfProxy]); + } } } |