Make the logic use an or instead nullish coalesce
This commit is contained in:
parent
4d36cc29a5
commit
e552b7d041
1 changed files with 1 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ export function GenericAppMixin(HandlebarsApp) {
|
|||
ctx.meta.idp = this.document?.uuid ?? this.id;
|
||||
if (this.document) {
|
||||
ctx.meta.limited = this.document.limited;
|
||||
ctx.meta.editable = this.isEditable ?? game.user.isGM;
|
||||
ctx.meta.editable = this.isEditable || game.user.isGM;
|
||||
ctx.meta.embedded = this.document.isEmbedded;
|
||||
};
|
||||
delete ctx.editable;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue