From 4188fae91218beb8c0f00657bf30f9ad39fec13e Mon Sep 17 00:00:00 2001 From: sharath <29162020+tnfssc@users.noreply.github.com> Date: Fri, 27 Jun 2025 15:32:31 +0000 Subject: [PATCH] hotfix(frontend): typeerrors --- .../src/components/thread/chat-input/chat-settings-dialog.tsx | 3 +++ frontend/src/components/workflows/nodes/InputNode.tsx | 3 +++ 2 files changed, 6 insertions(+) diff --git a/frontend/src/components/thread/chat-input/chat-settings-dialog.tsx b/frontend/src/components/thread/chat-input/chat-settings-dialog.tsx index 75628ab1..f6279b90 100644 --- a/frontend/src/components/thread/chat-input/chat-settings-dialog.tsx +++ b/frontend/src/components/thread/chat-input/chat-settings-dialog.tsx @@ -41,6 +41,7 @@ export function ChatSettingsDialog({ onOpenChange: controlledOnOpenChange, }: ChatSettingsDialogProps) { const [internalOpen, setInternalOpen] = useState(false); + const [billingModalOpen, setBillingModalOpen] = useState(false); const open = controlledOpen !== undefined ? controlledOpen : internalOpen; const setOpen = controlledOnOpenChange || setInternalOpen; @@ -86,6 +87,8 @@ export function ChatSettingsDialog({ canAccessModel={canAccessModel} refreshCustomModels={refreshCustomModels} hasBorder={true} + billingModalOpen={billingModalOpen} + setBillingModalOpen={setBillingModalOpen} />
diff --git a/frontend/src/components/workflows/nodes/InputNode.tsx b/frontend/src/components/workflows/nodes/InputNode.tsx index b2896b72..9afd8b07 100644 --- a/frontend/src/components/workflows/nodes/InputNode.tsx +++ b/frontend/src/components/workflows/nodes/InputNode.tsx @@ -37,6 +37,7 @@ const InputNode = memo(({ data, selected, id }: NodeProps) => { const [isScheduleDialogOpen, setIsScheduleDialogOpen] = useState(false); const [localPrompt, setLocalPrompt] = useState(nodeData.prompt || ''); const { updateNodeData, workflowId } = useWorkflow(); + const [billingModalOpen, setBillingModalOpen] = useState(false); // Use the model selection hook const { @@ -226,6 +227,8 @@ const InputNode = memo(({ data, selected, id }: NodeProps) => { canAccessModel={canAccessModel} subscriptionStatus={subscriptionStatus} refreshCustomModels={refreshCustomModels} + billingModalOpen={billingModalOpen} + setBillingModalOpen={setBillingModalOpen} />