refactor(annotation): remove unnecessary loop
This commit is contained in:
parent
510f5e9ddd
commit
9adc1ea4e7
@ -7,11 +7,6 @@ function generateId(envelopeId, receiverId, annotationType) {
|
|||||||
async function createAnnotations(document, envelopeId, receiverId) {
|
async function createAnnotations(document, envelopeId, receiverId) {
|
||||||
const signatures = [];
|
const signatures = [];
|
||||||
|
|
||||||
for (let element of document.elements) {
|
|
||||||
const annotParams = await getAnnotationParams(element.left, element.top);
|
|
||||||
const page = element.page - 1
|
|
||||||
}
|
|
||||||
|
|
||||||
for (let element of document.elements) {
|
for (let element of document.elements) {
|
||||||
const annotParams = await getAnnotationParams(element.left, element.top);
|
const annotParams = await getAnnotationParams(element.left, element.top);
|
||||||
const page = element.page - 1
|
const page = element.page - 1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user