<#4052 [BUG] UI adds spaces to strings inside stru...
# flyte-github
a
#4052 [BUG] UI adds spaces to strings inside structs Issue created by ggydush Describe the bug When using both dict and dataclass types, the types are represented as a struct in the FlyteConsole. If the struct has a string with commas in it, a space character is added after every comma in the FlyteConsole's Input fields box when launching a workflow (example: "a,b,c" turns into "a, b, c, "). Clicking "Relaunch" adds an additional space as well ("a, b, c, " turns into "a, b, c, "). Expected behavior Strings with commas have no added spaces in the FlyteConsole when used within struct types. Additional context to reproduce
Copy code
from dataclasses_json import DataClassJsonMixin
from flytekit import task, workflow


@dataclass
class TestClass(DataClassJsonMixin):
    a: str = "this,causes,issues"


@task
def test_task(spec: TestClass) -> None:
    return


@workflow
def test_workflow(spec: TestClass = TestClass()) -> None:
    return test_task(spec=spec)
Screenshots No response Are you sure this issue hasn't been raised already? ☑︎ Yes Have you read the Code of Conduct? ☑︎ Yes flyteorg/flyte