msavin / MongoInspector

[DEPRECATED] Use Mongol
http://mongol.meteor.com
MIT License
36 stars 5 forks source link

Bug: Colorization #8

Closed bumbleblym closed 9 years ago

bumbleblym commented 9 years ago

Exception in template helper: TypeError: Cannot read property 'replace' of undefined at MongoInspector_Colorize

Occurs in your example too.

LarsBuur commented 9 years ago

you should add a guard to check

if (! (typeof json === "undefined"))
msavin commented 9 years ago

Bumbleblym, thanks for the report.

Thanks Lars, that patch did it!

Pushing up a new version shortly.