Fix all settings button opening sidebar settings tab (#7765)

This commit is contained in:
Charlie Calendre 2022-02-09 13:09:52 +01:00 committed by GitHub
parent 714136d4f7
commit 254dbeeccb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,10 +63,7 @@ const QuickSettingsButton = ({ isPanelCollapsed = false }) => {
<AccessibleButton <AccessibleButton
onClick={() => { onClick={() => {
closeMenu(); closeMenu();
defaultDispatcher.dispatch({ defaultDispatcher.dispatch({ action: Action.ViewUserSettings });
action: Action.ViewUserSettings,
initialTabId: UserTab.Sidebar,
});
}} }}
kind="primary_outline" kind="primary_outline"
> >