kadikraman / draftjs-md-converter

Converts content from Draft.js blocks to Markdown and vice versa.
https://kadikraman.github.io/draftjs-md-converter/
MIT License
145 stars 37 forks source link

check if value is set before accessing length #22

Closed joejoejoew closed 7 years ago

kadikraman commented 7 years ago

Hi @joejoejoew - thanks for your contribution!

Could you please add a test to highlight the necessity of this change? Cheers!

joejoejoew commented 7 years ago

Hi, here's a test. I also added a commit to fix a long line eslint was complaining about.

kadikraman commented 7 years ago

Thanks! Looks good to me 👍

kadikraman commented 7 years ago

Published your fix in v0.1.4 🎉