Initial implementation for bitmap text component. Only dimensions support for now

This commit is contained in:
SleepWalker
2016-09-22 08:10:00 +03:00
parent 3fcf10a393
commit a6b6055fe8
5 changed files with 43 additions and 11 deletions

View File

@@ -19,7 +19,7 @@ export default class DevApp extends Component {
componentWillMount() {
try {
const lastState = JSON.parse(localStorage.getItem('emailRendererState'));
this.setState(lastState);
lastState && this.setState(lastState);
} catch (err) {/* no state was saved */}
}