Duplicating workflow function causes warning

image

if you duplicate a function that has at least 1 parameter with a test value (like the image above) every parameter shows as a linter warning for <variable_name> not defined. if you delete the test value and then replace the value (just copy-delete-paste) it seems to sort itself out (visually anyway, there could duplicate variables on the stack now or something idk).

if none of the parameters have test values, this little bug doesn't happen. it only happens with 1 or more test values.

1 Like

Hey @bobthebear! Thanks for catching and flagging this.

I did some testing and was surprised to see that it's not just a linting issue - the duplicate query actually errors out until you manually force it to acknowledge the defined parameters. It also seems to happen whether there is a test value or not.

I'll report this to the team and let you know when we have a fix planned! :+1:

2 Likes