diff options
| author | bobzel <zzzman@gmail.com> | 2025-02-14 14:07:18 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2025-02-14 14:07:18 -0500 |
| commit | c079b7aa916d7eb35ce186806ca312c84e910cb2 (patch) | |
| tree | ec3ab972671d54b31639c8f357bde4ae372b0d2a /src/client/views/collections/CollectionSubView.tsx | |
| parent | 4a9d8bf9e09a25faeba41c7ece46b86548d66847 (diff) | |
major restructure of GPTPopup so that it works with all collections.
Diffstat (limited to 'src/client/views/collections/CollectionSubView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionSubView.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/collections/CollectionSubView.tsx b/src/client/views/collections/CollectionSubView.tsx index 5e99bec39..954f9aa4c 100644 --- a/src/client/views/collections/CollectionSubView.tsx +++ b/src/client/views/collections/CollectionSubView.tsx @@ -121,6 +121,7 @@ export function CollectionSubView<X>() { return this.dataDoc[this._props.fieldKey]; // this used to be 'layoutDoc', but then template fields will get ignored since the template is not a proto of the layout. hopefully nothing depending on the previous code. } + hasChildDocs = () => this.childLayoutPairs.map(pair => pair.layout); @computed get childLayoutPairs(): { layout: Doc; data: Doc }[] { const { Document, TemplateDataDocument } = this._props; const validPairs = this.childDocs |
