aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionView.tsx
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2019-03-28 15:24:57 -0400
committerBob Zeleznik <zzzman@gmail.com>2019-03-28 15:24:57 -0400
commitbdea88507ce2ba4da32b7f89c995021d0a058413 (patch)
treea6ae6834488cb4ba5f29c71a0bae2511ecb7635b /src/client/views/collections/CollectionView.tsx
parente64ec4345b8403347e86ac8c472507343f6b7548 (diff)
fixed some things with linking. still some real inefficiencies.
Diffstat (limited to 'src/client/views/collections/CollectionView.tsx')
-rw-r--r--src/client/views/collections/CollectionView.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionView.tsx b/src/client/views/collections/CollectionView.tsx
index 789f07e8c..c804085df 100644
--- a/src/client/views/collections/CollectionView.tsx
+++ b/src/client/views/collections/CollectionView.tsx
@@ -70,7 +70,7 @@ export class CollectionView extends React.Component<CollectionViewProps> {
public static AddDocument(props: CollectionViewProps, doc: Document, allowDuplicates: boolean): boolean {
var curPage = props.Document.GetNumber(KeyStore.CurPage, -1);
doc.SetOnPrototype(KeyStore.Page, new NumberField(curPage));
- if (curPage > 0) {
+ if (curPage >= 0) {
doc.SetOnPrototype(KeyStore.AnnotationOn, props.Document);
}
if (props.Document.Get(props.fieldKey) instanceof Field) {