Commit d5afe9bd authored by Sharp Hall's avatar Sharp Hall

Add key to react list

parent 6f113283
......@@ -158,7 +158,7 @@ class VehicleList extends React.Component {
return (
<div>
{this.props.vehicleList.map(vehicle => (
<Vehicle vehicleData={vehicle} />
<Vehicle vehicleData={vehicle} key={vehicle.VehicleID} />
))}
</div>
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment