Skip to content

[bug] Properties with '-' inside thier names are not being properly saved, should be saved as var_1['item-1'] instead of var_1.item-1 #2233

@ivicac

Description

@ivicac

https://share.cleanshot.com/6DNJJQQw

Sample workflow:

{
    "label" : "dash",
    "description" : "",
    "inputs" : [ ],
    "triggers" : [ ],
    "tasks" : [ {
        "label" : "Var",
        "name" : "var_1",
        "parameters" : {
            "type" : "OBJECT",
            "value" : {
                "item-1" : "value1",
                "F-333" : "w",
                "item2" : "value2"
            }
        },
        "type" : "var/v1/set",
        "metadata" : {
            "ui" : {
                "dynamicPropertyTypes" : {
                    "value.item-1" : "STRING",
                    "value.F-333" : "STRING",
                    "value.item2" : "STRING"
                }
            }
        }
    }, {
        "label" : "Var",
        "name" : "var_2",
        "parameters" : {
            "type" : "OBJECT",
            "value" : {
                "value21" : "${var_1.item-1}",
                "value211" : "${var_1['item-1']}",
                "value22" : "${var_1.item2}"
            }
        },
        "type" : "var/v1/set",
        "metadata" : {
            "ui" : {
                "dynamicPropertyTypes" : {
                    "value.value21" : "STRING",
                    "value.value22" : "STRING",
                    "value.value211" : "STRING"
                }
            }
        }
    } ]
}

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingfrontendConcerning any and all frontend issues

Type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions