diff --git a/web/src/app/admin/connectors/zulip/page.tsx b/web/src/app/admin/connectors/zulip/page.tsx index 969faee44fb..e4169c23329 100644 --- a/web/src/app/admin/connectors/zulip/page.tsx +++ b/web/src/app/admin/connectors/zulip/page.tsx @@ -24,7 +24,7 @@ const MainSection = () => { data: connectorIndexingStatuses, isLoading: isConnectorIndexingStatusesLoading, error: isConnectorIndexingStatusesError, - } = useSWR[]>( + } = useSWR[]>( "/api/manage/admin/connector/indexing-status", fetcher ); @@ -53,11 +53,13 @@ const MainSection = () => { return
Failed to load credentials
; } - const zulipConnectorIndexingStatuses: ConnectorIndexingStatus[] = - connectorIndexingStatuses.filter( - (connectorIndexingStatus) => - connectorIndexingStatus.connector.source === "zulip" - ); + const zulipConnectorIndexingStatuses: ConnectorIndexingStatus< + ZulipConfig, + ZulipCredentialJson + >[] = connectorIndexingStatuses.filter( + (connectorIndexingStatus) => + connectorIndexingStatus.connector.source === "zulip" + ); const zulipCredential = credentialsData.filter( (credential) => credential.credential_json?.zuliprc_content )[0]; diff --git a/web/src/app/admin/indexing/status/page.tsx b/web/src/app/admin/indexing/status/page.tsx index c9584da6930..c4b91936400 100644 --- a/web/src/app/admin/indexing/status/page.tsx +++ b/web/src/app/admin/indexing/status/page.tsx @@ -87,8 +87,7 @@ const ConnectorTitle = ({ connectorIndexingStatus }: ConnectorTitleProps) => { typedConnector.connector_specific_config.channels.join(", ") ); } - } - else if (connector.source === "zulip") { + } else if (connector.source === "zulip") { const typedConnector = connector as Connector; additionalMetadata.set( "Realm",