From 83a79826b5652b81caf8e3aab20b81c78a6e6de9 Mon Sep 17 00:00:00 2001 From: Felix Date: Sun, 29 Dec 2019 19:33:53 +0100 Subject: [PATCH] Add files via upload --- compendium-browser.js | 4 +++- module.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/compendium-browser.js b/compendium-browser.js index d3c4eff..962893d 100644 --- a/compendium-browser.js +++ b/compendium-browser.js @@ -1,6 +1,6 @@ /** * @author Felix Müller aka syl3r86 - * @version 0.1.1 + * @version 0.1.2 */ class SpellBrowser extends Application { @@ -563,6 +563,7 @@ class SpellBrowser extends Application { } } } else { + if (prop === undefined) return false; if (typeof prop === 'object') { if (filter.value) { if (prop.indexOf(filter.value) === -1) { @@ -577,6 +578,7 @@ class SpellBrowser extends Application { } } } else { + console.log(prop); for (let val of filter.values) { if (prop === val) { continue; diff --git a/module.json b/module.json index 9f4ba5c..810f3de 100644 --- a/module.json +++ b/module.json @@ -2,7 +2,7 @@ "name": "compendium-browser", "title": "Compendium Browser", "description": "A module to easily browse and filter spells as well as npcs loaded from compendie.", - "version": "0.1.1", + "version": "0.1.2", "author": "Felix#6196", "systems": ["dnd5e"], "scripts": ["./compendium-browser.js"],