mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-04-08 03:48:14 +02:00
Fix hubspot connector
This commit is contained in:
parent
d07647c597
commit
7174ea3908
@ -155,18 +155,14 @@ const Main = () => {
|
||||
<div className="flex">
|
||||
<ConnectorForm<HubSpotConfig>
|
||||
nameBuilder={() => "HubSpotConnector"}
|
||||
ccPairNameBuilder={() => "HubSpotConnector"}
|
||||
source="hubspot"
|
||||
inputType="poll"
|
||||
formBody={null}
|
||||
validationSchema={Yup.object().shape({})}
|
||||
initialValues={{}}
|
||||
refreshFreq={10 * 60} // 10 minutes
|
||||
onSubmit={async (isSuccess, responseJson) => {
|
||||
if (isSuccess && responseJson) {
|
||||
await linkCredential(responseJson.id, hubSpotCredential.id);
|
||||
mutate("/api/manage/admin/connector/indexing-status");
|
||||
}
|
||||
}}
|
||||
credentialId={hubSpotCredential.id}
|
||||
/>
|
||||
</div>
|
||||
</>
|
||||
|
Loading…
x
Reference in New Issue
Block a user