oro-sdk 2.15.1 → 2.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1405,18 +1405,26 @@ function _populateWorkflowField() {
1405
1405
  case 0:
1406
1406
  displayedAnswer = undefined;
1407
1407
  _context4.t0 = question.kind;
1408
- _context4.next = _context4.t0 === 'radio' ? 4 : _context4.t0 === 'radio-card' ? 4 : _context4.t0 === 'select' ? 4 : _context4.t0 === 'multiple' ? 7 : _context4.t0 === 'checkbox-group' ? 7 : _context4.t0 === 'images' ? 10 : 14;
1408
+ _context4.next = _context4.t0 === 'text-select-group' ? 4 : _context4.t0 === 'radio' ? 7 : _context4.t0 === 'radio-card' ? 7 : _context4.t0 === 'select' ? 7 : _context4.t0 === 'multiple' ? 10 : _context4.t0 === 'checkbox-group' ? 10 : _context4.t0 === 'images' ? 13 : 17;
1409
1409
  break;
1410
1410
 
1411
1411
  case 4:
1412
1412
  if (question.answers) {
1413
- displayedAnswer = question.answers[answerValue].text;
1413
+ displayedAnswer = answerValue[0] + " " + question.answers[answerValue[1]].text;
1414
1414
  }
1415
1415
 
1416
1416
  answer = answerValue;
1417
- return _context4.abrupt("break", 15);
1417
+ return _context4.abrupt("break", 18);
1418
1418
 
1419
1419
  case 7:
1420
+ if (question.answers) {
1421
+ displayedAnswer = question.answers[answerValue].text;
1422
+ }
1423
+
1424
+ answer = answerValue;
1425
+ return _context4.abrupt("break", 18);
1426
+
1427
+ case 10:
1420
1428
  displayedAnswer = answerValue.map(function (value) {
1421
1429
  if (question.answers) {
1422
1430
  return question.answers[value].text;
@@ -1425,10 +1433,10 @@ function _populateWorkflowField() {
1425
1433
  throw new WorkflowAnswersMissingError();
1426
1434
  });
1427
1435
  answer = answerValue;
1428
- return _context4.abrupt("break", 15);
1436
+ return _context4.abrupt("break", 18);
1429
1437
 
1430
- case 10:
1431
- _context4.next = 12;
1438
+ case 13:
1439
+ _context4.next = 15;
1432
1440
  return getImagesFromIndexDb(answerValue).then(function (images) {
1433
1441
  return images.map(function (image) {
1434
1442
  var name = image.name,
@@ -1440,21 +1448,21 @@ function _populateWorkflowField() {
1440
1448
  });
1441
1449
  });
1442
1450
 
1443
- case 12:
1451
+ case 15:
1444
1452
  answer = _context4.sent;
1445
- return _context4.abrupt("break", 15);
1453
+ return _context4.abrupt("break", 18);
1446
1454
 
1447
- case 14:
1455
+ case 17:
1448
1456
  answer = answerValue;
1449
1457
 
1450
- case 15:
1458
+ case 18:
1451
1459
  return _context4.abrupt("return", Promise.resolve({
1452
1460
  answer: answer,
1453
1461
  displayedAnswer: displayedAnswer,
1454
1462
  kind: question.kind
1455
1463
  }));
1456
1464
 
1457
- case 16:
1465
+ case 19:
1458
1466
  case "end":
1459
1467
  return _context4.stop();
1460
1468
  }