Clone and variables

Hi,

I have clone of widget
In my clone ID I have “clone_@{this.variables.letter}

in my props :
{
“variables”: { “n”: 45, “ID”: 2, “color”: “#43fe13”, “letter”: “C” }
}
But I got a “clone_undefined” result.

Are you cloning a widget that has a variable property ?

1 Like

yep
it’s the patch that I shared in the forum

Ok I see, the variable property is overridden for the cloned widget, but the clone itself does not have it.

ok alors la je don’t get it ?! :face_with_raised_eyebrow:
j’ai vérifié la présence des variables dans le clone et le cloné

Le widget de type “clone” (pas le widget cloné) n’a pas de propriété “variables”, @{this.variables} retourne donc undefined.

because it’s a “prop” and not variables, now I get it.
ok this is not possible. It’s not so important it was just an add-on