Skip to content

Commit 80af943

Browse files
author
Marco Franceschi
committed
fix: Fixed error with VPC connections and elasticSearchDomain
1 parent f930336 commit 80af943

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/services/vpc/connections.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ export default ({
149149
if (domains?.data?.[region]) {
150150
const dataAtRegion: RawAwsElasticSearchDomain[] = domains.data[
151151
region
152-
].filter(({ VPCOptions }) => VPCOptions.VPCId === id)
152+
].filter(({ VPCOptions }) => VPCOptions?.VPCId === id)
153153

154154
for (const domain of dataAtRegion) {
155155
connections.push({

0 commit comments

Comments
 (0)