aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2023-04-27 20:48:27 -0400
committerbobzel <zzzman@gmail.com>2023-04-27 20:48:27 -0400
commitcc62b9949854f27bc19eb8d4224456094f0dbe13 (patch)
tree408bea567f5b70e594f64aa8b5147e34851da463 /src
parent08d94147eb855bbb3d7eb964ffa6a7a3248001a2 (diff)
from last
Diffstat (limited to 'src')
-rw-r--r--src/client/views/collections/collectionSchema/SchemaTableCell.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/collectionSchema/SchemaTableCell.tsx b/src/client/views/collections/collectionSchema/SchemaTableCell.tsx
index bbf8e2bbf..4f4986b90 100644
--- a/src/client/views/collections/collectionSchema/SchemaTableCell.tsx
+++ b/src/client/views/collections/collectionSchema/SchemaTableCell.tsx
@@ -93,7 +93,7 @@ export class SchemaTableCell extends React.Component<SchemaTableCellProps> {
let protoCount = 0;
let doc: Doc | undefined = this.props.Document;
while (doc) {
- if (Object.keys(doc).includes(this.props.fieldKey)) {
+ if (Object.keys(doc).includes(this.props.fieldKey.replace(/^_/, ''))) {
break;
}
protoCount++;