diff --git a/server/homebrew.api.js b/server/homebrew.api.js index 86352c687..07b1c33f2 100644 --- a/server/homebrew.api.js +++ b/server/homebrew.api.js @@ -82,7 +82,7 @@ If you believe you should have access to this brew, ask the file owner to invite stub = _.defaults(stub, DEFAULT_BREW_LOAD); // Fill in blank fields } - req.brew = stub; + req.brew = stub ?? {}; next(); }; },