We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2beda78 commit 1182707Copy full SHA for 1182707
packages/compass-preferences-model/src/compass-web-preferences-access.ts
@@ -15,13 +15,13 @@ export class CompassWebPreferencesAccess implements PreferencesAccess {
15
}
16
17
savePreferences(_attributes: Partial<UserPreferences>) {
18
+ // Only allow saving the optInDataExplorerGenAIFeatures preference.
19
if (
20
Object.keys(_attributes).length === 1 &&
21
'optInDataExplorerGenAIFeatures' in _attributes
22
) {
23
return Promise.resolve(this._preferences.savePreferences(_attributes));
24
- // do not save any attributes other than the optInDataExplorerGenAIFeatures setting
25
return Promise.resolve(this._preferences.getPreferences());
26
27
0 commit comments