This is an automated email from the ASF dual-hosted git repository.
juzhiyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-dashboard.git
The following commit(s) were added to refs/heads/master by this push:
new f009244 fix: click avatarDropdown setting, there will be a loading
appeared (#1132)
f009244 is described below
commit f009244f06f4936be1c94d0c2745343577a245b8
Author: liuxiran <[email protected]>
AuthorDate: Mon Dec 28 08:59:43 2020 -0600
fix: click avatarDropdown setting, there will be a loading appeared (#1132)
Co-authored-by: 琚致远 <[email protected]>
---
web/src/components/RightContent/AvatarDropdown.tsx | 1 -
1 file changed, 1 deletion(-)
diff --git a/web/src/components/RightContent/AvatarDropdown.tsx
b/web/src/components/RightContent/AvatarDropdown.tsx
index a87f831..0b3cd47 100644
--- a/web/src/components/RightContent/AvatarDropdown.tsx
+++ b/web/src/components/RightContent/AvatarDropdown.tsx
@@ -53,7 +53,6 @@ const AvatarDropdown: React.FC<GlobalHeaderRightProps> = ({
menu }) => {
const onMenuClick = useCallback((event) => {
const { key } = event;
if (key === 'settings') {
- setInitialState({ ...initialState, currentUser: undefined });
settings();
return;
}