Skip to content

Commit 70d3566

Browse files
fixing projectId
1 parent 2860198 commit 70d3566

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

packages/compass-generative-ai/src/components/ai-optin-modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ type OptInModalProps = {
2323
isOptInInProgress: boolean;
2424
onOptInModalClose: () => void;
2525
onOptInClick: () => void;
26-
projectId: string | undefined;
26+
projectId?: string;
2727
};
2828

2929
const titleStyles = css({

packages/compass-generative-ai/src/components/plugin.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import AIOptInModal from './ai-optin-modal';
44
import { ConfirmationModalArea } from '@mongodb-js/compass-components';
55

66
export interface AtlasAiPluginProps {
7-
projectId: string | undefined;
7+
projectId?: string;
88
}
99

1010
export const AtlasAiPlugin: React.FunctionComponent<AtlasAiPluginProps> = ({

packages/compass/src/app/components/home.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,7 @@ function Home({
118118
<CompassSettingsPlugin></CompassSettingsPlugin>
119119
<CompassFindInPagePlugin></CompassFindInPagePlugin>
120120
<AtlasAuthPlugin></AtlasAuthPlugin>
121-
<CompassGenerativeAIPlugin
122-
projectId={undefined}
123-
></CompassGenerativeAIPlugin>
121+
<CompassGenerativeAIPlugin></CompassGenerativeAIPlugin>
124122
<LegacyConnectionsModal />
125123
</FieldStorePlugin>
126124
</CompassInstanceStorePlugin>

0 commit comments

Comments
 (0)