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.length > 0 &&
q.choices q.choices
.split('\n') .split('\n')
.map((option, index) => ( .map(option => (
<SelectOption key={index} value={option} /> <SelectOption key={option} value={option} />
))} ))}
</Select> </Select>
</FormGroup> </FormGroup>