mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-21 20:36:43 +00:00
Ensure getBrew returns an object if undefined
This commit is contained in:
1 parent
901615d99e
commit
da676c6ec1
1 file changed
+1
-1
@@ -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();
|
||||
};
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user