[Canvas] switch
function skips case
statements
#110509
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:Canvas
Team:Presentation
Presentation Team for Dashboard, Input Controls, and Canvas
Kibana version: 7.14.0
Describe the bug:
The
switch
statement in Canvas is broken after upgrading to7.14.0
.It seems that if the first
case
is not matched, theswitch
statement jumps over all othercase
s, and returns thedefault
statement.Steps to reproduce:
returns
{ "text": "default" }
Expected behavior:
{ "text": "case2" }
Any additional context:
7.13.3
which worked as expected.returns
{ "text": "case1" }
case={...}
which is optional according to the function reference. The result is the same.The text was updated successfully, but these errors were encountered: