Skip to content

Commit 5c8e35c

Browse files
committed
nit
1 parent 05aa795 commit 5c8e35c

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

packages/compass-collection/src/components/collection-header-actions/collection-header-actions.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,12 @@ const CollectionHeaderActions: React.FunctionComponent<
9595
mockDataGeneratorAssignment?.assignment?.assignmentData?.variant ===
9696
ExperimentTestGroup.mockDataGeneratorVariant;
9797

98-
let shouldShowMockDataButton =
98+
const shouldShowMockDataButton =
9999
isInMockDataTreatmentVariant &&
100100
atlasMetadata && // Only show in Atlas
101101
!isReadonly && // Don't show for readonly collections (views)
102102
!sourceName; // sourceName indicates it's a view
103103

104-
// shouldShowMockDataButton = true;
105-
106104
const exceedsMaxNestingDepth =
107105
analyzedSchemaDepth > MAX_COLLECTION_NESTING_DEPTH;
108106

packages/compass-collection/src/components/mock-data-generator-modal/raw-schema-confirmation-screen.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,10 @@ const RawSchemaConfirmationScreen = ({
4444
schemaAnalysis,
4545
fakerSchemaGenerationStatus,
4646
}: RawSchemaConfirmationScreenProps) => {
47-
let enableSampleDocumentPassing = usePreference(
47+
const enableSampleDocumentPassing = usePreference(
4848
'enableGenAISampleDocumentPassing'
4949
);
5050

51-
// enableSampleDocumentPassing = false;
52-
5351
const subtitleText = enableSampleDocumentPassing
5452
? 'Sample Documents Collected'
5553
: 'Document Schema Identified';

0 commit comments

Comments
 (0)