From 1841a7d9fd42fe4aa26829095910518c4bee1ca9 Mon Sep 17 00:00:00 2001 From: Artem Niehrieiev Date: Sat, 30 Aug 2025 14:41:28 +0000 Subject: [PATCH] fix: prevent pushing undefined connections to testConnectionsArr --- backend/src/helpers/constants/constants.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/src/helpers/constants/constants.ts b/backend/src/helpers/constants/constants.ts index 6812ec321..91277a1f9 100644 --- a/backend/src/helpers/constants/constants.ts +++ b/backend/src/helpers/constants/constants.ts @@ -280,7 +280,9 @@ export const Constants = { default: break; } - testConnectionsArr.push(connection); + if (connection) { + testConnectionsArr.push(connection); + } } return testConnectionsArr; } catch (e) {