Prettier fixes for web

This commit is contained in:
Pratik Kabra 2023-07-20 18:02:41 -05:00
parent 7ad98480be
commit 610fe6ebc4
2 changed files with 6 additions and 6 deletions

View File

@ -29,7 +29,7 @@ const Main = () => {
error: isConnectorIndexingStatusesError,
} = useSWR<ConnectorIndexingStatus<any>[]>(
"/api/manage/admin/connector/indexing-status",
fetcher,
fetcher
);
const {
data: credentialsData,
@ -37,7 +37,7 @@ const Main = () => {
error: isCredentialsError,
} = useSWR<Credential<NotionCredentialJson>[]>(
"/api/manage/credential",
fetcher,
fetcher
);
if (
@ -57,10 +57,10 @@ const Main = () => {
const notionConnectorIndexingStatuses = connectorIndexingStatuses.filter(
(connectorIndexingStatus) =>
connectorIndexingStatus.connector.source === "notion",
connectorIndexingStatus.connector.source === "notion"
);
const notionCredential = credentialsData.filter(
(credential) => credential.credential_json?.notion_integration_token,
(credential) => credential.credential_json?.notion_integration_token
)[0];
return (
@ -124,7 +124,7 @@ const Main = () => {
}
validationSchema={Yup.object().shape({
notion_integration_token: Yup.string().required(
"Please enter the Notion Integration token for the Danswer integration.",
"Please enter the Notion Integration token for the Danswer integration."
),
})}
initialValues={{

View File

@ -92,7 +92,7 @@ export const getSourceIcon = (sourceType: ValidSources, iconSize: string) => {
};
export const getSourceDisplayName = (
sourceType: ValidSources,
sourceType: ValidSources
): string | null => {
return getSourceMetadata(sourceType).displayName;
};