diff --git a/module.json b/module.json index 301fa6e..d4a468a 100644 --- a/module.json +++ b/module.json @@ -4,8 +4,8 @@ "description": "Adds a browser to easily find and copy Active Effect data paths in Daggerheart.", "url": "https://git.geeks.gay/cosmo/dh-path-browser", "manifest": "https://git.geeks.gay/cosmo/dh-path-browser/raw/branch/main/module.json", - "download": "https://git.geeks.gay/cosmo/dh-path-browser/releases/download/1.1.0/dh-path-browser.zip", - "version": "1.1.0", + "download": "https://git.geeks.gay/cosmo/dh-path-browser/releases/download/1.1.1/dh-path-browser.zip", + "version": "1.1.1", "compatibility": { "minimum": "13", "verified": "14" diff --git a/scripts/app.mjs b/scripts/app.mjs index 96515ee..f1453aa 100644 --- a/scripts/app.mjs +++ b/scripts/app.mjs @@ -143,7 +143,7 @@ export class DhPathBrowserApp extends HandlebarsApplicationMixin(ApplicationV2) // Process Actors for (const [key, model] of Object.entries(game.system.api.models.actors)) { - if (ignoredActorKeys.includes(key)) continue; + if (ignoredActorKeys.includes(key) || !model?.metadata) continue; const group = game.i18n.localize(model.metadata.label); const attributes = CONFIG.Token.documentClass.getTrackedAttributes(model.metadata.type); @@ -169,6 +169,7 @@ export class DhPathBrowserApp extends HandlebarsApplicationMixin(ApplicationV2) // Process Items for (const [key, model] of Object.entries(game.system.api.models.items)) { + if (!model?.metadata) continue; const group = `${game.i18n.localize('DOCUMENT.Item')} (${game.i18n.localize(model.metadata.label)})`; const bonuses = getAllLeaves(model, model.schema.fields.bonuses, group);