Skip to content

Commit 571b066

Browse files
minor fix
1 parent 5c14cac commit 571b066

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/connectedFields/controllers/eg001SetConnectedFields.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ eg001SetConnectedFields.createController = async (req, res) => {
4040
// Step 2. Call the worker method
4141
const { body } = req;
4242
const selectedAppId = validator.escape(body.appId);
43-
const selectedApp = req.session.apps.filter(app => app.appId === selectedAppId)[0];
43+
const selectedApp = req.session.apps.find(app => app.appId === selectedAppId);
4444
const envelopeArgs = {
4545
signerEmail: validator.escape(body.signerEmail),
4646
signerName: validator.escape(body.signerName),

0 commit comments

Comments
 (0)