mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-02 15:02:38 +00:00
Convert any tags strings to arrays
This commit is contained in:
@@ -21,6 +21,8 @@ const splitTextStyleAndMetadata = (brew)=>{
|
|||||||
brew.snippets = brew.text.slice(11, index - 1);
|
brew.snippets = brew.text.slice(11, index - 1);
|
||||||
brew.text = brew.text.slice(index + 5);
|
brew.text = brew.text.slice(index + 5);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(typeof brew.tags === 'string') brew.tags = brew.tags ? [brew.tags] : [];
|
||||||
};
|
};
|
||||||
|
|
||||||
const printCurrentBrew = ()=>{
|
const printCurrentBrew = ()=>{
|
||||||
|
|||||||
Reference in New Issue
Block a user