Variables not working after 1.302 Dashboards update because spaces in values are no longer trimmed

Why?

We introduced a breaking change to make variable value replacements more predictable and less “bug/error” prone.

What changed?

  • Previously, spaces were automatically trimmed for variable values for CSV and Code variables. So, any such spaces were not evaluated as part of the value during replacing referenced tiles.
  • Starting with this release, spaces are not automatically trimmed but evaluated as part of the value to make variable replacements more predictable.

How to solve it?

To resolve this issue, trim spaces from data:

  • For Type CSV, remove the spaces before and after a comma
  • For Type Code, use the JavaScript String.prototype.trim() function
3 Likes