From ae9eef4fba5bbfb3ced73dab928838dcb4df1cf9 Mon Sep 17 00:00:00 2001 From: Charlie Humphreys Date: Fri, 5 Aug 2022 15:37:22 -0500 Subject: [PATCH] update location of tags type rewrite --- client/homebrew/editor/editor.jsx | 5 +---- server/homebrew.api.js | 3 +++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/homebrew/editor/editor.jsx b/client/homebrew/editor/editor.jsx index f881886ba..fd9f850d3 100644 --- a/client/homebrew/editor/editor.jsx +++ b/client/homebrew/editor/editor.jsx @@ -299,10 +299,7 @@ const Editor = createClass({ style={{ display: 'none' }} rerenderParent={this.rerenderParent} /> ; } diff --git a/server/homebrew.api.js b/server/homebrew.api.js index 4af232b4c..924e728db 100644 --- a/server/homebrew.api.js +++ b/server/homebrew.api.js @@ -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();