diff options
| author | Andrew Kim <andrewdkim@users.noreply.github.com> | 2019-03-05 16:09:11 -0500 |
|---|---|---|
| committer | Andrew Kim <andrewdkim@users.noreply.github.com> | 2019-03-05 16:09:11 -0500 |
| commit | 71414876a73dfc328a0b4e45f285f5a9e6753294 (patch) | |
| tree | c4d02fa23cde1ed209ce0e1716cf8b0a547b650b /src | |
| parent | f9ec063ac57061b0b6ee9df901773401f98f87e6 (diff) | |
Minor changes (annotation rendering)
Diffstat (limited to 'src')
| -rw-r--r-- | src/views/nodes/PDFNode.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/views/nodes/PDFNode.tsx b/src/views/nodes/PDFNode.tsx index 6aead8c58..8f30a3bec 100644 --- a/src/views/nodes/PDFNode.tsx +++ b/src/views/nodes/PDFNode.tsx @@ -85,6 +85,7 @@ export class PDFNode extends React.Component<FieldViewProps> { onPageBack = () => { if (this.page > 1){ this.page -= 1; + this.currAnno = []; this.perPage[this.page] = this.pageInfo this.pageInfo = {area:[], divs:[], anno: []}; //resets the object to default if (this.perPage[this.page - 1]){ @@ -100,6 +101,7 @@ export class PDFNode extends React.Component<FieldViewProps> { onPageForward = () => { if (this.page < this.numPage){ this.page += 1; + this.currAnno = []; this.perPage[this.page - 2] = this.pageInfo; this.pageInfo = {area:[], divs:[], anno: []}; //resets the object to default if (this.perPage[this.page - 1]){ |
