Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependant parameter is loaded twice on page opening #655

Open
bugy opened this issue Apr 21, 2023 · 0 comments
Open

Dependant parameter is loaded twice on page opening #655

bugy opened this issue Apr 21, 2023 · 0 comments

Comments

@bugy
Copy link
Owner

bugy commented Apr 21, 2023

If there is a dependent parameter, which is based on another parameter and a script, it is loaded twice, if another parameter has a default value. E.g.:

 {
      "name": "Required Text",
      "default": "apt"
    },
    {
      "name": "Command-based list",
      "default": "lib",
      "type": "list",
      "values": {
        "script": "ls /var | grep -v lock | grep -v backups"
      }
    },

    {
      "name": "Dependant list",
      "type": "list",
      "values": {
        "script": "sleep 10 && ls /var/${Command-based list}/${Required Text}",
        "shell": true
      }
    }

In this cage, the script is invoked when a page is loading and then once again, after UI is rendered already

@bugy bugy added the bug label Apr 21, 2023
@bugy bugy added this to the 1.18.0 milestone Apr 21, 2023
@bugy bugy added the resolved label Apr 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant