fix cannot read properties of undefined in ChaosFaultController (#4668)

Signed-off-by: JanhaviAlekar <janhavialekar@gmail.com>
Co-authored-by: Amit Kumar Das <amit.das@harness.io>
This commit is contained in:
Janhavi Alekar 2024-07-22 10:42:27 +05:30 committed by GitHub
parent 67a19857eb
commit ff21351864
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ export default function ChaosFaultController(): React.ReactElement {
variables: {
projectID: scope.projectID,
hubID: hubID,
experiments: experiments.length ? experiments : []
experiments: experiments?.length ? experiments : []
}
});
}