diff options
| author | Bob Zeleznik <zzzman@gmail.com> | 2019-05-05 15:10:18 -0400 |
|---|---|---|
| committer | Bob Zeleznik <zzzman@gmail.com> | 2019-05-05 15:10:18 -0400 |
| commit | 68d18976359434c46cc9bde3df6fbe708021761e (patch) | |
| tree | 7be8339663b0234a60a0a1cfd9990f7dfc0d8f9c /src/client/views/collections/CollectionBaseView.tsx | |
| parent | 237dd0b1280c3f880a1eab9e3cd02b4f882811a5 (diff) | |
fixed problem with annotations being added to view document instead of proto. added keyvalue indication for fields that only exist on prootype
Diffstat (limited to 'src/client/views/collections/CollectionBaseView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionBaseView.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionBaseView.tsx b/src/client/views/collections/CollectionBaseView.tsx index 76adfcdcd..cbb568c07 100644 --- a/src/client/views/collections/CollectionBaseView.tsx +++ b/src/client/views/collections/CollectionBaseView.tsx @@ -100,12 +100,12 @@ export class CollectionBaseView extends React.Component<CollectionViewProps> { value.push(doc); } } else { - this.props.Document[this.props.fieldKey] = new List([doc]); + Doc.SetOnPrototype(this.props.Document, this.props.fieldKey, new List([doc])); } // set the ZoomBasis only if hasn't already been set -- bcz: maybe set/resetting the ZoomBasis should be a parameter to addDocument? if (this.collectionViewType === CollectionViewType.Freeform || this.collectionViewType === CollectionViewType.Invalid) { let zoom = NumCast(this.props.Document.scale, 1); - doc.zoomBasis = zoom; + Doc.SetOnPrototype(doc, "zoomBasis", zoom); } } return true; |
