refactor(annotation): remove unnecessary loop
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user