0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-28 22:12:39 +00:00

Add comment

This commit is contained in:
Trevor Buckner
2024-12-02 12:23:54 -05:00
committed by GitHub
parent 2743ab869a
commit 9f9948f531

View File

@@ -22,6 +22,7 @@ const splitTextStyleAndMetadata = (brew)=>{
brew.text = brew.text.slice(index + 5);
}
// Handle old brews that still have empty strings in the tags metadata
if(typeof brew.tags === 'string') brew.tags = brew.tags ? [brew.tags] : [];
};