diff --git a/src/frontend/src/contexts/tabsContext.tsx b/src/frontend/src/contexts/tabsContext.tsx index 8be0a7c69..a1d3eda7c 100644 --- a/src/frontend/src/contexts/tabsContext.tsx +++ b/src/frontend/src/contexts/tabsContext.tsx @@ -85,7 +85,9 @@ export function TabsProvider({ children }: { children: ReactNode }) { if (cookie && Object.keys(templates).length > 0) { let cookieObject: LangFlowState = JSON.parse(cookie); cookieObject.flows.forEach((flow) => { - flow.data.edges.forEach((edge) => {edge.className = "";}) + flow.data.edges.forEach((edge) => { + edge.className = ""; + }); flow.data.nodes.forEach((node) => { if (Object.keys(templates[node.data.type]["template"]).length > 0) { node.data.node.base_classes = @@ -287,7 +289,9 @@ export function TabsProvider({ children }: { children: ReactNode }) { const data = flow?.data ? flow.data : null; const description = flow?.description ? flow.description : ""; if (data) { - data.edges.forEach((edge) => {edge.className = "";}) + data.edges.forEach((edge) => { + edge.className = ""; + }); data.nodes.forEach((node) => { if (Object.keys(templates[node.data.type]["template"]).length > 0) { node.data.node.base_classes = diff --git a/src/frontend/src/icons/ChromaIcon/index.tsx b/src/frontend/src/icons/ChromaIcon/index.tsx index 045108535..2e4790edc 100644 --- a/src/frontend/src/icons/ChromaIcon/index.tsx +++ b/src/frontend/src/icons/ChromaIcon/index.tsx @@ -3,9 +3,7 @@ import { ReactComponent as ChromaSVG } from "./chroma.svg"; const ChromaIcon = forwardRef>( (props, ref) => { - return ( - - ); + return ; } ); diff --git a/src/frontend/src/utils.ts b/src/frontend/src/utils.ts index 0d5590ddd..12a2b5805 100644 --- a/src/frontend/src/utils.ts +++ b/src/frontend/src/utils.ts @@ -124,23 +124,23 @@ export const nodeIcons: { React.SVGProps >; } = { - Chroma: ChromaIcon, - agents: RocketLaunchIcon, - chains: LinkIcon, - memories: CpuChipIcon, - llms: LightBulbIcon, - prompts: CommandLineIcon, - tools: WrenchIcon, - advanced: ComputerDesktopIcon, - chat: Bars3CenterLeftIcon, - embeddings: FingerPrintIcon, - documentloaders: PaperClipIcon, - vectorstores: CircleStackIcon, - toolkits: WrenchScrewdriverIcon, - textsplitters: ScissorsIcon, - wrappers: GiftIcon, - utilities: Squares2X2Icon, - unknown: QuestionMarkCircleIcon, + Chroma: ChromaIcon, + agents: RocketLaunchIcon, + chains: LinkIcon, + memories: CpuChipIcon, + llms: LightBulbIcon, + prompts: CommandLineIcon, + tools: WrenchIcon, + advanced: ComputerDesktopIcon, + chat: Bars3CenterLeftIcon, + embeddings: FingerPrintIcon, + documentloaders: PaperClipIcon, + vectorstores: CircleStackIcon, + toolkits: WrenchScrewdriverIcon, + textsplitters: ScissorsIcon, + wrappers: GiftIcon, + utilities: Squares2X2Icon, + unknown: QuestionMarkCircleIcon, }; export const bgColors = {