0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 18:32:41 +00:00

Convert any tags strings to arrays

This commit is contained in:
G.Ambatte
2024-12-02 16:18:18 +13:00
parent d18005fad4
commit e17db0788c

View File

@@ -21,6 +21,8 @@ const splitTextStyleAndMetadata = (brew)=>{
brew.snippets = brew.text.slice(11, index - 1);
brew.text = brew.text.slice(index + 5);
}
if(typeof brew.tags === 'string') brew.tags = brew.tags ? [brew.tags] : [];
};
const printCurrentBrew = ()=>{