From 3b2216f66890b3eacd17781994d637f0b5287f3b Mon Sep 17 00:00:00 2001 From: Azgaar Date: Mon, 31 May 2021 23:17:06 +0300 Subject: [PATCH] Resource editor - ability to add bonus if no bonuses --- modules/ui/resources-editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ui/resources-editor.js b/modules/ui/resources-editor.js index 4c6c6006..cd86219c 100644 --- a/modules/ui/resources-editor.js +++ b/modules/ui/resources-editor.js @@ -660,7 +660,7 @@ function editResources() { const bonusString = Object.entries(bonusObj).map((e) => e.join(': ')).join('; '); //prettier-ignore resource.bonus = bonusObj; - el.innerHTML = bonusHTML; + el.innerHTML = bonusHTML || "place"; line.dataset.bonus = bonusString; el.setAttribute('title', bonusString); }