mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-02 12:52:38 +00:00
Fix Jest issues I was able to understand
This commit is contained in:
@@ -207,7 +207,7 @@ const BrewRenderer = (props)=>{
|
||||
baseRendererPath += '/';
|
||||
}
|
||||
|
||||
const staticOrUserParent = props?.theme[0] == '#' ? `/cssParent/${themePath}` : `/css/${baseRendererPath}${baseThemePath}`;
|
||||
const staticOrUserParent = (props.theme && props?.theme[0] == '#') ? `/cssParent/${themePath}` : `/css/${baseRendererPath}${baseThemePath}`;
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
@@ -117,7 +117,7 @@ const PrintPage = createClass({
|
||||
baseRendererPath += '/';
|
||||
}
|
||||
|
||||
const staticOrUserParent = this.state.brew.theme[0] == '#' ? `/cssParent/${themePath}` : `/css/${baseRendererPath}${baseThemePath}`;
|
||||
const staticOrUserParent = (this.state.brew.theme && this.state.brew?.theme[0] == '#') ? `/cssParent/${themePath}` : `/css/${baseRendererPath}${baseThemePath}`;
|
||||
|
||||
return <div>
|
||||
<Meta name='robots' content='noindex, nofollow' />
|
||||
|
||||
Reference in New Issue
Block a user