Skip to content

Commit 83ce8fa

Browse files
committed
Fix typing
1 parent a782d73 commit 83ce8fa

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

packages/compass-indexes/src/components/create-index-form/create-index-form.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export type CreateIndexFormProps = {
5050
onRemoveFieldClick: (idx: number) => void; // Minus icon.
5151
onTabClick: (tab: Tab) => void;
5252
showIndexesGuidanceVariant?: boolean;
53-
query?: Document;
53+
query: Document | null;
5454
};
5555

5656
function CreateIndexForm({

packages/compass-indexes/src/components/create-index-form/query-flow-section.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ const QueryFlowSection = ({
9797
}: SuggestedIndexFetchedProps) => Promise<void>;
9898
indexSuggestions: Record<string, number> | null;
9999
fetchingSuggestionsState: IndexSuggestionState;
100-
initialQuery?: Document;
100+
initialQuery: Document | null;
101101
}) => {
102102
const [inputQuery, setInputQuery] = React.useState(
103103
JSON.stringify(initialQuery?.filter ?? {}, null, 2)

packages/compass-indexes/src/components/create-index-modal/create-index-modal.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ type CreateIndexModalProps = React.ComponentProps<typeof CreateIndexForm> & {
3636
namespace: string;
3737
error: string | null;
3838
currentTab: Tab;
39-
query?: Document;
39+
query: Document | null;
4040
onErrorBannerCloseClick: () => void;
4141
onCreateIndexClick: () => void;
4242
onCancelCreateIndexClick: () => void;
@@ -83,9 +83,11 @@ function CreateIndexModal({
8383
);
8484

8585
// @experiment Early Journey Indexes Guidance & Awareness | Jira Epic: CLOUDP-239367
86-
const enableInIndexesGuidanceExp = usePreference('enableIndexesGuidanceExp');
87-
const showIndexesGuidanceVariant =
88-
usePreference('showIndexesGuidanceVariant') && enableInIndexesGuidanceExp;
86+
// const enableInIndexesGuidanceExp = usePreference('enableIndexesGuidanceExp');
87+
// const showIndexesGuidanceVariant =
88+
// usePreference('showIndexesGuidanceVariant') && enableInIndexesGuidanceExp;
89+
const enableInIndexesGuidanceExp = true;
90+
const showIndexesGuidanceVariant = true;
8991

9092
useFireExperimentViewed({
9193
testName: TestName.earlyJourneyIndexesGuidance,

0 commit comments

Comments
 (0)