Steps:
1. open Pipelines page for a repo, minimal reproduction repo here: https://bitbucket.org/tomsaleeba/bb-pipeline-bug-vars/addon/pipelines/home#!/results/page/1
1. click "Run Pipeline" button
1. select the `main` branch
1. select the "one" pipeline
1. select the "two" pipeline

Expected:
The variables for the "two" pipeline show the defaults defined in the YAML. That is foo="hello", bar="" and baz="".
Actual:
The variables still retain the values from when viewing the "one" pipeline. The inputs don't seem to be reset when changing pipelines.