the-via / app

GNU General Public License v3.0
846 stars 190 forks source link

Add key for each line in errors #180

Open hughrawlinson opened 1 year ago

hughrawlinson commented 1 year ago

React was yelling at me because this map didn't have a key. Since they're strings, lines of an error, I think they're fine as keys themselves - if the line is too long to be a good idea to use as a key, it probably is also too long to be displayed without truncation, so I'll assume both are going to be reasonable lengths.