aboutsummaryrefslogtreecommitdiff
path: root/src/fields/Doc.ts
diff options
context:
space:
mode:
authormehekj <mehek.jethani@gmail.com>2021-10-21 16:46:49 -0400
committermehekj <mehek.jethani@gmail.com>2021-10-21 16:46:49 -0400
commit353e72feb29d3549dcf7ec7875241ddb7a9a99d9 (patch)
tree743d8afe0700bff47c7ef5e141a606cbaba8c0e6 /src/fields/Doc.ts
parent6cec290f98103827727905874c5a9c5ced0bcca8 (diff)
parentbdf0befa2b5eff79c2729254c2d053afe18b1646 (diff)
Merge branch 'master' into temporalmedia-mehek
Diffstat (limited to 'src/fields/Doc.ts')
-rw-r--r--src/fields/Doc.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fields/Doc.ts b/src/fields/Doc.ts
index 13f88e2fc..631bbabed 100644
--- a/src/fields/Doc.ts
+++ b/src/fields/Doc.ts
@@ -1315,6 +1315,7 @@ export namespace Doc {
if (typeof resolved === "object" && !(resolved instanceof Array)) {
output = convertObject(resolved, excludeEmptyObjects, title, appendToExisting?.targetDoc);
} else {
+ // give the proper types to the data extracted from the JSON
const result = toField(resolved, excludeEmptyObjects);
if (appendToExisting) {
(output = appendToExisting.targetDoc)[appendToExisting.fieldKey || defaultKey] = result;