NickyMeuleman / nicky-blog

https://nickymeuleman.netlify.app/
14 stars 6 forks source link

Fix duplicate keys in multilang codeblocks #169

Closed NickyMeuleman closed 1 year ago

NickyMeuleman commented 2 years ago

You can see the error on /blog/multithreading-rust.

It happens because there are duplicate key properties in the MultiLangCode component.

Fix by making keys unique. easiest way: making a key string with the index in it (this is OK because that index will never change)