File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed
packages/compass-indexes/src/components Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff 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
5656function CreateIndexForm ( {
Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments