aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/collections/collectionSchema/CollectionSchemaView.tsx')
-rw-r--r--src/client/views/collections/collectionSchema/CollectionSchemaView.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx b/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx
index c287b7d44..5c8a84163 100644
--- a/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx
+++ b/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx
@@ -533,7 +533,7 @@ export class CollectionSchemaView extends CollectionSubView() {
return cell;
}
- findCellRefs = (text: string) => {
+ findCellRefs = (text: string, retRawMatches?: boolean) => {
const pattern = /(this|d(\d+))\.(\w+)/g;
interface Match { docRef: string; field: string; }
@@ -545,6 +545,8 @@ export class CollectionSchemaView extends CollectionSubView() {
matches.push({ docRef, field: match[3] });
}
+ if (retRawMatches) return matches;
+
const cells: Array<any> = [];
matches.forEach((match: Match) => {
const {docRef, field} = match;