Skip to content

Commit

Permalink
chore(preferences-model): enable updating the cloudFeatureRolloutAcce…
Browse files Browse the repository at this point in the history
…ss preference for web COMPASS-8572 (#6528)
  • Loading branch information
Anemy authored Nov 25, 2024
1 parent e7ebaf1 commit 51b61a4
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ export class CompassWebPreferencesAccess implements PreferencesAccess {
'optInDataExplorerGenAIFeatures' in _attributes
) {
return Promise.resolve(this._preferences.savePreferences(_attributes));
} else if (
Object.keys(_attributes).length === 1 &&
'cloudFeatureRolloutAccess' in _attributes
) {
return Promise.resolve(this._preferences.savePreferences(_attributes));
}
return Promise.resolve(this._preferences.getPreferences());
}
Expand Down

0 comments on commit 51b61a4

Please sign in to comment.