Skip to content

Commit ae24fed

Browse files
committed
fix orgId
1 parent 0b505e0 commit ae24fed

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

client/packages/lowcoder/src/pages/setting/environments/components/ContactLowcoderModal.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import React, { useState, useEffect } from 'react';
22
import { Modal, Card, Row, Col, Typography, Divider, Spin, Alert } from 'antd';
33
import { CustomerServiceOutlined, CloudServerOutlined } from '@ant-design/icons';
4+
import { useSelector } from 'react-redux';
45
import { Environment } from '../types/environment.types';
56
import { getEnvironmentDeploymentId } from '../services/environments.service';
67
import { HubspotModal } from '../../hubspotModal';
8+
import { getUser } from 'redux/selectors/usersSelectors';
79

810
const { Title, Text } = Typography;
911

@@ -25,6 +27,7 @@ const ContactLowcoderModal: React.FC<ContactLowcoderModalProps> = ({
2527
const [isLoading, setIsLoading] = useState(false);
2628
const [error, setError] = useState<string | null>(null);
2729
const [showHubspotModal, setShowHubspotModal] = useState(false);
30+
const user = useSelector(getUser);
2831

2932
// Fetch deployment ID when modal opens
3033
useEffect(() => {
@@ -77,7 +80,7 @@ const ContactLowcoderModal: React.FC<ContactLowcoderModalProps> = ({
7780
<HubspotModal
7881
open={showHubspotModal}
7982
onClose={handleHubspotClose}
80-
orgId={environment.environmentId}
83+
orgId={user.currentOrgId}
8184
deploymentIds={[deploymentId]}
8285
/>
8386
);

0 commit comments

Comments
 (0)