Describe the bug
Having only one custom condition prints out errors into the console whenever you try to right-click a token, and prevents you from opening the HUD on other tokens.
To Reproduce
Steps to reproduce the behavior:
Place some tokens into the tabletop.
Enable Enhanced Conditions in the CUBPuter, then open the Condition Lab.
Change Mapping Type to "Other/Imported".
Add a row, then click Save Mapping.
Right-click tokens. Token HUD does not function correctly.
Expected behavior
The token HUD should remain functional and the single condition should be available.
Screenshots
(Note: below I am attempting to open the HUD on a different token than the one that it appears on)
Environment Info:
Foundry Version: Version 10 - Build 291
Game System / Version: Cyberpunk RED - CORE v0.86.0 (although have tested in others and can reproduce)
CUB Version: 1.10.4
Browser: Chrome
OS: Windows 11
Additional context
Having none is fine, and having more than one is also fine.
Here is the error that appears in the console:
foundry.js:747 TypeError: CONFIG.statusEffects.concat is not a function [Detected 1 package: combat-utility-belt] at TokenHUD._getStatusEffectChoices (foundry.js:71459:33) at TokenHUD._getStatusEffectChoices (token.js:199:40) at TokenHUD.getData (foundry.js:71429:30) at TokenHUD._render (foundry.js:5108:29) at TokenHUD._render (foundry.js:68578:17) at TokenHUD.render (foundry.js:5067:10) at TokenHUD.bind (foundry.js:68553:10) at TokenHUD.bind (foundry.js:71376:18) at Token._onClickRight (foundry.js:25580:16) at MouseInteractionManager.callback (foundry.js:27813:45) at MouseInteractionManager._handleClickRight (foundry.js:28090:10) at MouseInteractionManager._handleRightDown (foundry.js:28070:22) at a.emit (index.js:181:35) at r.dispatchEvent (interaction.min.mjs:8:12235) at r.processPointerDown (interaction.min.mjs:8:14214) at t.recursiveFindHit (interaction.min.mjs:8:4098) at t.recursiveFindHit (interaction.min.mjs:8:3882) at t.recursiveFindHit (interaction.min.mjs:8:3882) at t.recursiveFindHit (interaction.min.mjs:8:3882) at t.recursiveFindHit (interaction.min.mjs:8:3882) at t.recursiveFindHit (interaction.min.mjs:8:3882) at t.findHit (interaction.min.mjs:8:4157) at r.processInteractive (interaction.min.mjs:8:12841) at r.onPointerDown (interaction.min.mjs:8:13543)
Describe the bug Having only one custom condition prints out errors into the console whenever you try to right-click a token, and prevents you from opening the HUD on other tokens.
To Reproduce Steps to reproduce the behavior:
Expected behavior The token HUD should remain functional and the single condition should be available.
Screenshots (Note: below I am attempting to open the HUD on a different token than the one that it appears on)
Environment Info:
Additional context Having none is fine, and having more than one is also fine.
Here is the error that appears in the console:
foundry.js:747 TypeError: CONFIG.statusEffects.concat is not a function [Detected 1 package: combat-utility-belt] at TokenHUD._getStatusEffectChoices (foundry.js:71459:33) at TokenHUD._getStatusEffectChoices (token.js:199:40) at TokenHUD.getData (foundry.js:71429:30) at TokenHUD._render (foundry.js:5108:29) at TokenHUD._render (foundry.js:68578:17) at TokenHUD.render (foundry.js:5067:10) at TokenHUD.bind (foundry.js:68553:10) at TokenHUD.bind (foundry.js:71376:18) at Token._onClickRight (foundry.js:25580:16) at MouseInteractionManager.callback (foundry.js:27813:45) at MouseInteractionManager._handleClickRight (foundry.js:28090:10) at MouseInteractionManager._handleRightDown (foundry.js:28070:22) at a.emit (index.js:181:35) at r.dispatchEvent (interaction.min.mjs:8:12235) at r.processPointerDown (interaction.min.mjs:8:14214) at t.recursiveFindHit (interaction.min.mjs:8:4098) at t.recursiveFindHit (interaction.min.mjs:8:3882) at t.recursiveFindHit (interaction.min.mjs:8:3882) at t.recursiveFindHit (interaction.min.mjs:8:3882) at t.recursiveFindHit (interaction.min.mjs:8:3882) at t.recursiveFindHit (interaction.min.mjs:8:3882) at t.findHit (interaction.min.mjs:8:4157) at r.processInteractive (interaction.min.mjs:8:12841) at r.onPointerDown (interaction.min.mjs:8:13543)