Skip to content

Commit

Permalink
Fix multiple choice sketch attributes bug (#368)
Browse files Browse the repository at this point in the history
* Fixes multiple choice sketch attribute bug

* nit
  • Loading branch information
avmey authored Nov 7, 2024
1 parent 3424af6 commit dfcfeb7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,13 @@ export const SketchAttributesCard = ({
paddingLeft: 6,
}}
>
{t(valueLabel) /* i18next-extract-disable-line */}
{valueLabel
? Array.isArray(valueLabel)
? valueLabel.map((v, index) => (
<div key={index}>{t(v)}</div>
))
: t(valueLabel) /* i18next-extract-disable-line */
: "N/A"}
</td>
{/* <span>{attr.label}</span>=<span>{attr.value}</span> */}
</tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,20 @@ const nextContextValue = sampleSketchReportContextValue({
},
},
},
{
label: "Gears",
value: ["LONG_LINE", "TRAWL"],
exportId: "gears",
fieldType: "MultipleChoice",
valueLabel: ["Long Line", "Trawl"],
formElementId: 2300,
alternateLanguages: {
pt: {
label: "Engrenagens",
valueLabel: ["Linha Longa", "Arrasto"],
},
},
},
],
},
});
Expand Down

0 comments on commit dfcfeb7

Please sign in to comment.