diff --git a/module/applications/dialogs/ownershipSelection.mjs b/module/applications/dialogs/ownershipSelection.mjs index 3cba1b9a..64173221 100644 --- a/module/applications/dialogs/ownershipSelection.mjs +++ b/module/applications/dialogs/ownershipSelection.mjs @@ -51,6 +51,7 @@ export default class OwnershipSelection extends HandlebarsApplicationMixin(Appli return acc; }, {}); + context.showOwnership = Boolean(Object.keys(context.ownership).length); return context; } diff --git a/templates/dialogs/ownershipSelection.hbs b/templates/dialogs/ownershipSelection.hbs index f098c9f5..ccd90cdf 100644 --- a/templates/dialogs/ownershipSelection.hbs +++ b/templates/dialogs/ownershipSelection.hbs @@ -1,5 +1,5 @@
- {{#if ownership.length}} + {{#if showOwnership}}