Skip to content

Commit

Permalink
add check for undefined values.checkStreams, since that was added rec…
Browse files Browse the repository at this point in the history
…ently (#22673)
  • Loading branch information
lmossman authored Feb 9, 2023
1 parent ce770d3 commit 6058e42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airbyte-webapp/src/components/connectorBuilder/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]] : [];

Expand Down

0 comments on commit 6058e42

Please sign in to comment.