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

Function getNestedField in FormFIeld doesn't return correct value for objects containing arrays #580

Open
dvcanton opened this issue Nov 28, 2024 · 0 comments · May be fixed by #581
Open

Comments

@dvcanton
Copy link

Describe the bug
When using the FormField component in a form containing nested arrays (for example, the new sources field in Argo's application spec definition), the implemented function will not return the correct value for the field.

How to reproduce
Use an object containing an array as src parameter and a path inside the array.
Example:

src:
{
    "apiVersion": "argoproj.io/v1alpha1",
    "kind": "Application",
    "metadata": {
        "name": ""
    },
    "spec": {
        "destination": {
            "name": "",
            "namespace": "",
            "server": ""
        },
        "sources": [
            {
                "repoURL": "https://github.com/argoproj/argocd-example-apps.git",
                "name": "guestbook",
                "path": "guestbook",
                "ref": "guestbook"
            }
        ],
        "project": ""
    }
}

path: spec.sources[0].repoURL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant