Skip to content

Commit

Permalink
m
Browse files Browse the repository at this point in the history
  • Loading branch information
fredzqm committed May 10, 2024
1 parent 3033065 commit f10dcc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dataconnect/errors.ts
Expand Up @@ -35,5 +35,5 @@ export function getInvalidConnectors(err: any): string[] {
function errorDetails(err: any, ofType: string): any[] {
const original = err.context?.body?.error || err?.original;
const details: any[] = original?.details;
return details?.filter((d) => d["@type"]?.includes(ofType));
return details?.filter((d) => d["@type"]?.includes(ofType)) || [];
}

0 comments on commit f10dcc6

Please sign in to comment.