aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionBaseView.tsx
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-06-05 14:09:40 -0400
committerbob <bcz@cs.brown.edu>2019-06-05 14:09:40 -0400
commit1087133d71ef2ac7df6976c61685167ed0fe71d9 (patch)
treeb14a38abbcd7ff04a79f1508c2ac77f4dcd54708 /src/client/views/collections/CollectionBaseView.tsx
parente24bf03dd4edab2e5be2d73a6dc7f9c01fc5da85 (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.tsx2
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)) {