mirror of
https://github.com/MODSetter/SurfSense.git
synced 2025-09-02 18:49:09 +00:00
fix: recurse
This commit is contained in:
parent
99fa03d78b
commit
37f5458b53
1 changed files with 1 additions and 16 deletions
|
@ -62,21 +62,6 @@ import { getConnectorIcon } from "@/components/chat";
|
||||||
import { cn } from "@/lib/utils";
|
import { cn } from "@/lib/utils";
|
||||||
import { format } from "date-fns";
|
import { format } from "date-fns";
|
||||||
|
|
||||||
// Helper function to get connector type display name
|
|
||||||
const getConnectorTypeDisplay = (type: string): string => {
|
|
||||||
const typeMap: Record<string, string> = {
|
|
||||||
SERPER_API: "Serper API",
|
|
||||||
TAVILY_API: "Tavily API",
|
|
||||||
SLACK_CONNECTOR: "Slack",
|
|
||||||
NOTION_CONNECTOR: "Notion",
|
|
||||||
GITHUB_CONNECTOR: "GitHub",
|
|
||||||
LINEAR_CONNECTOR: "Linear",
|
|
||||||
LINKUP_API: "Linkup",
|
|
||||||
// Add other connector types here as needed
|
|
||||||
};
|
|
||||||
return typeMap[type] || type;
|
|
||||||
};
|
|
||||||
|
|
||||||
// Helper function to format date with time
|
// Helper function to format date with time
|
||||||
const formatDateTime = (dateString: string | null): string => {
|
const formatDateTime = (dateString: string | null): string => {
|
||||||
if (!dateString) return "Never";
|
if (!dateString) return "Never";
|
||||||
|
@ -141,10 +126,10 @@ export default function ConnectorsPage() {
|
||||||
const handleIndexConnector = async () => {
|
const handleIndexConnector = async () => {
|
||||||
if (selectedConnectorForIndexing === null) return;
|
if (selectedConnectorForIndexing === null) return;
|
||||||
|
|
||||||
setIndexingConnectorId(selectedConnectorForIndexing);
|
|
||||||
setDatePickerOpen(false);
|
setDatePickerOpen(false);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
setIndexingConnectorId(selectedConnectorForIndexing);
|
||||||
const startDateStr = startDate ? format(startDate, "yyyy-MM-dd") : undefined;
|
const startDateStr = startDate ? format(startDate, "yyyy-MM-dd") : undefined;
|
||||||
const endDateStr = endDate ? format(endDate, "yyyy-MM-dd") : undefined;
|
const endDateStr = endDate ? format(endDate, "yyyy-MM-dd") : undefined;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue