aboutsummaryrefslogtreecommitdiff
path: root/src/fields/Doc.ts
diff options
context:
space:
mode:
authorsrichman333 <sarah_n_richman@brown.edu>2023-07-31 11:24:50 -0400
committersrichman333 <sarah_n_richman@brown.edu>2023-07-31 11:24:50 -0400
commit71c3072bb253682ed16861de24bcb141ccf7f79e (patch)
treea9ae65c5ebce119dd3f85dfea6ce50b75d44ca71 /src/fields/Doc.ts
parentb236882faef4e5434158e7a8dfb82daa47031ca5 (diff)
parent08f125f5880247280c02633feeb31a8df1912b97 (diff)
Merge branch 'master' into data-visualization-sarah
Diffstat (limited to 'src/fields/Doc.ts')
-rw-r--r--src/fields/Doc.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fields/Doc.ts b/src/fields/Doc.ts
index 5a8a6e4b6..ad557e079 100644
--- a/src/fields/Doc.ts
+++ b/src/fields/Doc.ts
@@ -573,7 +573,7 @@ export namespace Doc {
// compare whether documents or their protos match
export function AreProtosEqual(doc?: Doc, other?: Doc) {
- return doc && other && Doc.GetProto(doc) === Doc.GetProto(other);
+ return doc && other && (doc === other || Doc.GetProto(doc) === Doc.GetProto(other));
}
// Gets the data document for the document. Note: this is mis-named -- it does not specifically