MCPcopy Create free account
hub / github.com/SecureAI-Tools/SecureAI-Tools / renderErrors

Function renderErrors

apps/web/lib/fe/components/generic-error.tsx:44–47  ·  view source on GitHub ↗
(...errors: unknown[])

Source from the content-addressed store, hash-verified

42
43// Renders errors if any. Returns undefined if no errors to render
44export const renderErrors = (...errors: unknown[]): JSX.Element | undefined => {
45 const firstRealError = errors.find((e) => e);
46 return firstRealError ? <GenericError errors={errors} /> : undefined;
47};

Callers 9

ChatHistoryFunction · 0.90
ChatWithDocsFunction · 0.90
OrgAISettingsFunction · 0.90
OrgGeneralSettingsFunction · 0.90
ChatPageFunction · 0.90
DataSourcesListPageFunction · 0.90
ConnectDataSourceFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected