File tree 2 files changed +6
-4
lines changed
builders/routing2/newRoutingDestination
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,10 @@ const getOptionValues = (optionIds, questionnaire) => {
27
27
const optionResults = optionIds . map ( ( id ) => {
28
28
const option = find ( options , { id } ) ;
29
29
30
- const optionContent = option . value
31
- ? option . value . trim ( )
32
- : option . label . trim ( ) ;
30
+ const optionContent =
31
+ questionnaire . dataVersion === "3" && option . value
32
+ ? option . value . trim ( )
33
+ : option . label . trim ( ) ;
33
34
34
35
const updatedContent = optionContent
35
36
. replace ( / & a p o s ; / g, `\u2019` )
Original file line number Diff line number Diff line change @@ -252,7 +252,8 @@ class Answer {
252
252
{ properties, type } ,
253
253
ctx
254
254
) {
255
- const optionValue = value ? value : label ;
255
+ const optionValue =
256
+ ctx && ctx . questionnaireJson . dataVersion === "3" && value ? value : label ;
256
257
const option = {
257
258
label : buildContents ( label , ctx , true ) ,
258
259
value : buildContents ( optionValue , ctx , true ) ,
You can’t perform that action at this time.
0 commit comments