0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-29 02:32:37 +00:00

Prevent loading of undefined renderer or theme themebundle.

This commit is contained in:
David Bolack
2024-08-12 21:42:25 -05:00
parent cbc6dcdc35
commit 136e877ee6
3 changed files with 6 additions and 4 deletions

View File

@@ -43,7 +43,9 @@ const HomePage = createClass({
editor : React.createRef(null),
componentDidMount : function() {
fetchThemeBundle(this, this.props.brew.renderer, this.props.brew.theme);
if(this.props.brew.renderer || this.props.brew.theme){
fetchThemeBundle(this, this.props.brew.renderer, this.props.brew.theme);
}
},
handleSave : function(){

View File

@@ -32,7 +32,9 @@ const SharePage = createClass({
componentDidMount : function() {
document.addEventListener('keydown', this.handleControlKeys);
fetchThemeBundle(this, this.props.brew.renderer, this.props.brew.theme);
if(this.props.brew.renderer || this.props.brew.theme){
fetchThemeBundle(this, this.props.brew.renderer, this.props.brew.theme);
}
},
componentWillUnmount : function() {