diff --git a/app/services/return-requirements/submit-additional-submission-options.service.js b/app/services/return-requirements/submit-additional-submission-options.service.js index 1b30edf549..13ecebd101 100644 --- a/app/services/return-requirements/submit-additional-submission-options.service.js +++ b/app/services/return-requirements/submit-additional-submission-options.service.js @@ -27,8 +27,7 @@ const SessionModel = require('../../models/session.model.js') */ async function go (sessionId, payload, yar) { const session = await SessionModel.query().findById(sessionId) - const options = _ensureIsArray(payload['additional-submission-options']) - payload['additional-submission-options'] = options + const options = payload['additional-submission-options'] = _ensureIsArray(payload['additional-submission-options']) const validationResult = _validate(payload) if (!validationResult) {