mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-22 18:56:54 +00:00
Handle missing lock property
This commit is contained in:
1 parent
802da2920b
commit
0d1d3a180d
1 file changed
+1
-1
@@ -54,7 +54,7 @@ const api = {
|
||||
});
|
||||
stub = stub?.toObject();
|
||||
|
||||
if(stub.lock?.state) {
|
||||
if(stub?.lock?.state) {
|
||||
// State 1 : Locked for everything
|
||||
// State 2 : Edit only
|
||||
if(stub.lock.state == 1 || (stub.lock.state == 2 && accessType != 'edit'))
|
||||
|
||||
Reference in new issue
Block a user