substance / lens

Lens - open science content creation and display
http://substance.io/lens
MIT License
124 stars 20 forks source link

Fix StatusBar crashing due to missing `doc` prop #93

Open philippamarkovics opened 8 years ago

philippamarkovics commented 8 years ago

Currently, StatusBar throws a type error during initial render because the doc prop is not being passed along to LensController. As remedy, we grab the doc from documentSession and pass it along for both the reader and the writer.

michael commented 8 years ago

We changed the API of LensWriter/Reader to take a DocumentSession instead of a Document so we can control realtime stuff outside of the editor. Very possible we introduced some regressions here. I will have look...