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 and sh4sh committed Feb 10, 2023
1 parent 350a718 commit e1999eb
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 e1999eb

Please sign in to comment.