From 87698893f12147811dda8074b98e33d87b37d49c Mon Sep 17 00:00:00 2001 From: TheGiddyLimit Date: Tue, 7 Nov 2023 17:59:55 +0000 Subject: [PATCH] v1.191.1 --- data/changelog.json | 5 +++++ js/render-markdown.js | 2 +- js/render.js | 2 +- js/utils.js | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 6 files changed, 11 insertions(+), 6 deletions(-) diff --git a/data/changelog.json b/data/changelog.json index c0114ebdd0..98a44f06eb 100644 --- a/data/changelog.json +++ b/data/changelog.json @@ -2562,5 +2562,10 @@ "date": "2023-11-07", "title": "Handmade Hell", "txt": "- Added Chains of Asmodeus content\n- Added Dynamic Map Viewer support to Planescape content; Adventure Atlas content\n- Added missing Planescape tokens; Adventure Atlas tokens\n- Added \"Has Info\"/\"Has Images\" filters to Recipes page\n- Fixed races failing to display their text in popout windows/etc.\n- Fixed Classes page \"View Most Recent\" subclass filter filtering to partnered content instead of all content\n- (Brew) Improved Item Text Converter handling of base item types/requirements; `magicvariant` name prefix/suffixes; charges/recharge types; split lines\n- (Brew) Added `\"tokenCredit\"` field to entities with tokens (rendered as a tooltip on the token)\n- (Brew) Spellcasting entries with all their spell types `\"hidden\"` will no longer be rendered\n- (Fixed typos/added tags)" + }, + { + "ver": "1.191.1", + "date": "2023-11-07", + "txt": "- Fixed creature spellcasting entries failing to _ever_ render" } ] diff --git a/js/render-markdown.js b/js/render-markdown.js index a50217009f..d5cc810000 100644 --- a/js/render-markdown.js +++ b/js/render-markdown.js @@ -381,7 +381,7 @@ class RendererMarkdown { _renderSpellcasting (entry, textStack, meta, options) { const toRender = this._renderSpellcasting_getEntries(entry); - if (!toRender.entries?.length) return; + if (!toRender?.[0].entries?.length) return; this._recursiveRender({type: "entries", entries: toRender}, textStack, meta, {prefix: RendererMarkdown._getNextPrefix(options), suffix: "\n"}); } diff --git a/js/render.js b/js/render.js index d3b813eafa..c3f16709c1 100644 --- a/js/render.js +++ b/js/render.js @@ -1104,7 +1104,7 @@ globalThis.Renderer = function () { this._renderSpellcasting = function (entry, textStack, meta, options) { const toRender = this._renderSpellcasting_getEntries(entry); - if (!toRender.entries?.length) return; + if (!toRender?.[0].entries?.length) return; this._recursiveRender({type: "entries", entries: toRender}, textStack, meta); }; diff --git a/js/utils.js b/js/utils.js index 5509df8c89..9c48954a14 100644 --- a/js/utils.js +++ b/js/utils.js @@ -2,7 +2,7 @@ // in deployment, `IS_DEPLOYED = "";` should be set below. globalThis.IS_DEPLOYED = undefined; -globalThis.VERSION_NUMBER = /* 5ETOOLS_VERSION__OPEN */"1.191.0"/* 5ETOOLS_VERSION__CLOSE */; +globalThis.VERSION_NUMBER = /* 5ETOOLS_VERSION__OPEN */"1.191.1"/* 5ETOOLS_VERSION__CLOSE */; globalThis.DEPLOYED_STATIC_ROOT = ""; // "https://static.5etools.com/"; // FIXME re-enable this when we have a CDN again globalThis.DEPLOYED_IMG_ROOT = undefined; // for the roll20 script to set diff --git a/package-lock.json b/package-lock.json index d5a79423ee..55e00d46b2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "5etools", - "version": "1.191.0", + "version": "1.191.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "5etools", - "version": "1.191.0", + "version": "1.191.1", "license": "MIT", "devDependencies": { "5etools-utils": "^0.9.39", diff --git a/package.json b/package.json index 502d1c6433..33655664d8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "5etools", "author": "TheGiddyLimit", - "version": "1.191.0", + "version": "1.191.1", "license": "MIT", "description": "A site dedicated to making playing games with your friends as easy as possible.", "type": "module",