RED-5406 - fix

This commit is contained in:
Valentin Mihai 2022-11-18 17:52:03 +02:00
parent 400f1a8447
commit d0e9dd5c27

View File

@ -51,7 +51,7 @@ export class ViewSwitchComponent {
async #switchToRedactedView() {
const unapprovedSuggestionsWarning = this._userPreferenceService.getUnapprovedSuggestionsWarning();
if (unapprovedSuggestionsWarning) {
if (!unapprovedSuggestionsWarning) {
const suggestions = (await this._fileDataService.annotations).filter(a => a.isSuggestion);
if (suggestions.length) {
const displaySuggestionsInPreview = this._userPreferenceService.getDisplaySuggestionsInPreview();