diff options
| author | bob <bcz@cs.brown.edu> | 2019-06-05 14:09:40 -0400 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-06-05 14:09:40 -0400 |
| commit | 1087133d71ef2ac7df6976c61685167ed0fe71d9 (patch) | |
| tree | b14a38abbcd7ff04a79f1508c2ac77f4dcd54708 /src/client/views/collections/CollectionBaseView.tsx | |
| parent | e24bf03dd4edab2e5be2d73a6dc7f9c01fc5da85 (diff) | |
cleaned up selections somewhat so that PDFs don't flicker when manipulating annotations.
Diffstat (limited to 'src/client/views/collections/CollectionBaseView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionBaseView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionBaseView.tsx b/src/client/views/collections/CollectionBaseView.tsx index 9350dc974..cb92464e5 100644 --- a/src/client/views/collections/CollectionBaseView.tsx +++ b/src/client/views/collections/CollectionBaseView.tsx @@ -158,7 +158,7 @@ export class CollectionBaseView extends React.Component<CollectionViewProps> { @action.bound moveDocument(doc: Doc, targetCollection: Doc, addDocument: (doc: Doc) => boolean): boolean { - if (this.props.Document === targetCollection) { + if (Doc.AreProtosEqual(this.props.Document, targetCollection)) { return true; } if (this.removeDocument(doc)) { |
