Skip to content

Commit 51b61a4

Browse files
authored
chore(preferences-model): enable updating the cloudFeatureRolloutAccess preference for web COMPASS-8572 (#6528)
1 parent e7ebaf1 commit 51b61a4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/compass-preferences-model/src/compass-web-preferences-access.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ export class CompassWebPreferencesAccess implements PreferencesAccess {
2121
'optInDataExplorerGenAIFeatures' in _attributes
2222
) {
2323
return Promise.resolve(this._preferences.savePreferences(_attributes));
24+
} else if (
25+
Object.keys(_attributes).length === 1 &&
26+
'cloudFeatureRolloutAccess' in _attributes
27+
) {
28+
return Promise.resolve(this._preferences.savePreferences(_attributes));
2429
}
2530
return Promise.resolve(this._preferences.getPreferences());
2631
}

0 commit comments

Comments
 (0)