Skip to content

Commit

Permalink
added missing optional chain for bracket notation (elastic#96939)
Browse files Browse the repository at this point in the history
  • Loading branch information
jloleysens authored Apr 14, 2021
1 parent 3a7f23e commit 8c8fcf1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const registerDeleteRoute = ({
// Until then we'll modify the response here.
if (
err?.meta &&
err.body?.task_failures[0]?.reason?.reason?.includes(
err.body?.task_failures?.[0]?.reason?.reason?.includes(
'Job must be [STOPPED] before deletion'
)
) {
Expand Down

0 comments on commit 8c8fcf1

Please sign in to comment.