Skip to content

Commit 2a6d5db

Browse files
#RI-3091-fix filter endpoints (#798)
1 parent b873b32 commit 2a6d5db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redisinsight/api/src/modules/shared/services/redis-enterprise-business/redis-enterprise-business.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export class RedisEnterpriseBusinessService {
126126
public getDatabaseExternalEndpoint(
127127
database: IRedisEnterpriseDatabase,
128128
): IRedisEnterpriseEndpoint {
129-
return database.endpoints.filter((endpoint: { addr_type: string }) => endpoint.addr_type === 'external')[0];
129+
return database.endpoints?.filter((endpoint: { addr_type: string }) => endpoint.addr_type === 'external')[0];
130130
}
131131

132132
private getDatabasePersistencePolicy(

0 commit comments

Comments
 (0)