Skip to content

Commit

Permalink
chore(preferences-model): allow updating the cloudFeatureRolloutAcces…
Browse files Browse the repository at this point in the history
…s preference for compass web
  • Loading branch information
Anemy committed Nov 25, 2024
1 parent 538fdcc commit 5eb01c2
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 5eb01c2

Please sign in to comment.