Skip to content

Commit 861b748

Browse files
committed
Fix typing
1 parent a782d73 commit 861b748

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
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: 1 addition & 1 deletion
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;

0 commit comments

Comments
 (0)