Fix linting error by not using index in key

This commit is contained in:
mabashian 2020-04-08 09:12:32 -04:00
parent c881762c97
commit 14e62057da

View File

@ -106,8 +106,8 @@ function SurveyPreviewModal({
{q.choices.length > 0 &&
q.choices
.split('\n')
.map((option, index) => (
<SelectOption key={index} value={option} />
.map(option => (
<SelectOption key={option} value={option} />
))}
</Select>
</FormGroup>