From 3645467d2264d289a18ad5f362ca9779c67ca356 Mon Sep 17 00:00:00 2001 From: lmossman Date: Thu, 9 Feb 2023 12:14:02 -0800 Subject: [PATCH] add check for undefined values.checkStreams, since that was added recently --- airbyte-webapp/src/components/connectorBuilder/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airbyte-webapp/src/components/connectorBuilder/types.ts b/airbyte-webapp/src/components/connectorBuilder/types.ts index 07f353f8f56e..f67fc7226b33 100644 --- a/airbyte-webapp/src/components/connectorBuilder/types.ts +++ b/airbyte-webapp/src/components/connectorBuilder/types.ts @@ -643,7 +643,7 @@ export const convertToManifest = (values: BuilderFormValues): ConnectorManifest }; const streamNames = values.streams.map((s) => s.name); - const validCheckStreamNames = values.checkStreams.filter((checkStream) => streamNames.includes(checkStream)); + const validCheckStreamNames = (values.checkStreams ?? []).filter((checkStream) => streamNames.includes(checkStream)); const correctedCheckStreams = validCheckStreamNames.length > 0 ? validCheckStreamNames : streamNames.length > 0 ? [streamNames[0]] : [];