mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-28 21:05:17 +02:00
Prettier fixes for web
This commit is contained in:
@@ -29,7 +29,7 @@ const Main = () => {
|
|||||||
error: isConnectorIndexingStatusesError,
|
error: isConnectorIndexingStatusesError,
|
||||||
} = useSWR<ConnectorIndexingStatus<any>[]>(
|
} = useSWR<ConnectorIndexingStatus<any>[]>(
|
||||||
"/api/manage/admin/connector/indexing-status",
|
"/api/manage/admin/connector/indexing-status",
|
||||||
fetcher,
|
fetcher
|
||||||
);
|
);
|
||||||
const {
|
const {
|
||||||
data: credentialsData,
|
data: credentialsData,
|
||||||
@@ -37,7 +37,7 @@ const Main = () => {
|
|||||||
error: isCredentialsError,
|
error: isCredentialsError,
|
||||||
} = useSWR<Credential<NotionCredentialJson>[]>(
|
} = useSWR<Credential<NotionCredentialJson>[]>(
|
||||||
"/api/manage/credential",
|
"/api/manage/credential",
|
||||||
fetcher,
|
fetcher
|
||||||
);
|
);
|
||||||
|
|
||||||
if (
|
if (
|
||||||
@@ -57,10 +57,10 @@ const Main = () => {
|
|||||||
|
|
||||||
const notionConnectorIndexingStatuses = connectorIndexingStatuses.filter(
|
const notionConnectorIndexingStatuses = connectorIndexingStatuses.filter(
|
||||||
(connectorIndexingStatus) =>
|
(connectorIndexingStatus) =>
|
||||||
connectorIndexingStatus.connector.source === "notion",
|
connectorIndexingStatus.connector.source === "notion"
|
||||||
);
|
);
|
||||||
const notionCredential = credentialsData.filter(
|
const notionCredential = credentialsData.filter(
|
||||||
(credential) => credential.credential_json?.notion_integration_token,
|
(credential) => credential.credential_json?.notion_integration_token
|
||||||
)[0];
|
)[0];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -124,7 +124,7 @@ const Main = () => {
|
|||||||
}
|
}
|
||||||
validationSchema={Yup.object().shape({
|
validationSchema={Yup.object().shape({
|
||||||
notion_integration_token: Yup.string().required(
|
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={{
|
initialValues={{
|
||||||
|
@@ -92,7 +92,7 @@ export const getSourceIcon = (sourceType: ValidSources, iconSize: string) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const getSourceDisplayName = (
|
export const getSourceDisplayName = (
|
||||||
sourceType: ValidSources,
|
sourceType: ValidSources
|
||||||
): string | null => {
|
): string | null => {
|
||||||
return getSourceMetadata(sourceType).displayName;
|
return getSourceMetadata(sourceType).displayName;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user