mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-24 22:52:40 +00:00
update location of tags type rewrite
This commit is contained in:
@@ -299,10 +299,7 @@ const Editor = createClass({
|
||||
style={{ display: 'none' }}
|
||||
rerenderParent={this.rerenderParent} />
|
||||
<MetadataEditor
|
||||
metadata={({
|
||||
...this.props.brew,
|
||||
tags : typeof this.props.brew.tags === 'string' ? [] : this.props.brew.tags
|
||||
})}
|
||||
metadata={this.props.brew}
|
||||
onChange={this.props.onMetaChange} />
|
||||
</>;
|
||||
}
|
||||
|
||||
@@ -56,6 +56,9 @@ const getBrew = (accessType)=>{
|
||||
throw 'Brew not found in Homebrewery database or Google Drive';
|
||||
}
|
||||
|
||||
if(typeof stub.tags === 'string') {
|
||||
stub.tags = [];
|
||||
}
|
||||
req.brew = stub;
|
||||
|
||||
next();
|
||||
|
||||
Reference in New Issue
Block a user