refactor(web): ♻ add key to components of SyntaxCloud

This commit is contained in:
Collin M. Barrett 2020-08-30 15:14:11 -05:00
parent 5ca882b51b
commit cec2f0016a

View file

@ -16,7 +16,7 @@ export const SyntaxCloud = (props: Props) =>
<h3>{`Syntax${props.syntaxes.length > 1 ? "es" : ""}:`}</h3>
)}
{props.syntaxes.map((s: Syntax, i: number) => (
<SyntaxTag name={s.name} definitionUrl={s.url} />
<SyntaxTag key={i} name={s.name} definitionUrl={s.url} />
))}
</div>
) : null;