Skip to content

[FIX] Display Modes#22058

Merged
ggazzo merged 9 commits intodevelopfrom
fix/display-mode
May 20, 2021
Merged

[FIX] Display Modes#22058
ggazzo merged 9 commits intodevelopfrom
fix/display-mode

Conversation

@gabriellsh
Copy link
Member

Proposed changes (including videos or screenshots)

Issue(s)

Steps to test or reproduce

Further comments

@gabriellsh gabriellsh requested review from a team and sampaiodiego May 18, 2021 00:51
@dougfabris dougfabris force-pushed the fix/display-mode branch 2 times, most recently from 5d8c3f2 to e90ce2b Compare May 18, 2021 18:19
@lgtm-com
Copy link

lgtm-com bot commented May 19, 2021

This pull request introduces 1 alert when merging 99876ce into 2dac1dd - view on LGTM.com

new alerts:

  • 1 for Unused variable, import, function or class

Copy link
Member

@dougfabris dougfabris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gabriellsh Everything is working well, thanks! Let's wait for the BE because of the migration.

@sampaiodiego sampaiodiego requested a review from a team May 20, 2021 12:21
{ _id: user._id },
{
$set: {
'settings.preferences.displayAvatars': !user.settings.preferences.hideAvatars,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's possible for a user to not to have the hideAvatars in preferences? (because if so, this can crash)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it's gonna crash, but it will have the wrong behaviour. It shouldn't be set if the value is undefined. I'll push a fix for this.

'settings.preferences.sidebarShowDiscussion': 1,
},
},
{ multi: true },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need multi: true here since you're just updating one entry

@ggazzo ggazzo merged commit 68f61a2 into develop May 20, 2021
@ggazzo ggazzo deleted the fix/display-mode branch May 20, 2021 19:46
@sampaiodiego sampaiodiego mentioned this pull request May 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments