hotfix(frontend): typeerrors

This commit is contained in:
sharath 2025-06-27 15:32:31 +00:00
parent ddebe23beb
commit 4188fae912
No known key found for this signature in database
2 changed files with 6 additions and 0 deletions

View File

@ -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}
/>
</div>
<p className="text-xs text-muted-foreground">

View File

@ -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}
/>
</div>
</div>