Skip to content

Commit 66413a0

Browse files
committed
Remove unneeded check
1 parent 41957c6 commit 66413a0

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

packages/compass-collection/src/stores/collection-tab.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,9 @@ export function activatePlugin(
107107
void collectionModel.fetchMetadata({ dataService }).then((metadata) => {
108108
store.dispatch(collectionMetadataFetched(metadata));
109109

110-
// Assign experiment for Mock Data Generator:
111-
// Only assign when experimentationServices.assignExperiment is initialized,
112-
// we're connected to Atlas,
113-
// and the org-level setting for AI features is enabled
110+
// Assign experiment for Mock Data Generator
111+
// Only assign when we're connected to Atlas and the org-level setting for AI features is enabled
114112
if (
115-
experimentationServices?.assignExperiment && // Ensures experimentation services are available
116113
connectionInfoRef.current?.atlasMetadata?.clusterName && // Ensures we only assign in Atlas
117114
isAIFeatureEnabled(preferences.getPreferences()) // Ensures org-level AI features setting is enabled
118115
) {

0 commit comments

Comments
 (0)