diff options
author | bobzel <zzzman@gmail.com> | 2022-12-23 17:12:45 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-12-23 17:12:45 -0500 |
commit | 04c961b163e90a9da2bad07d1ac241ea57a61094 (patch) | |
tree | 7c5a420e14014debfbfa21051f7a8f52e6907f85 /src/fields/List.ts | |
parent | 35f3c5467d03ab82a1220f1a36c67933492db718 (diff) |
fixed list lastElement() to return real field value, not proxy. fixed getField to only query proto if value is undefined, not just falsy
Diffstat (limited to 'src/fields/List.ts')
-rw-r--r-- | src/fields/List.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fields/List.ts b/src/fields/List.ts index 809173ddf..9c7794813 100644 --- a/src/fields/List.ts +++ b/src/fields/List.ts @@ -128,7 +128,7 @@ const listHandlers: any = { return this[Self].__fields.map(toRealField).join(separator); }, lastElement() { - return this[Self].__fields.lastElement(); + return this[Self].__realFields().lastElement(); }, lastIndexOf(valueToFind: any, fromIndex: number) { if (valueToFind instanceof RefField) { |