mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #3704 from zhuangzhuang/release-10.8.z
Fix empty avatar when upload same profile image
This commit is contained in:
commit
eaefc7bea1
1 changed files with 3 additions and 1 deletions
|
@ -134,7 +134,9 @@ const UserProfilePage: FunctionComponent<IProps> = ({userId}: IProps) => {
|
|||
});
|
||||
|
||||
(page.querySelector('.btnAddImage') as HTMLButtonElement).addEventListener('click', function () {
|
||||
(page.querySelector('#uploadImage') as HTMLInputElement).click();
|
||||
const uploadImage = page.querySelector('#uploadImage') as HTMLInputElement;
|
||||
uploadImage.value = '';
|
||||
uploadImage.click();
|
||||
});
|
||||
|
||||
(page.querySelector('#uploadImage') as HTMLInputElement).addEventListener('change', function (evt: Event) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue