diff --git a/packages/frontend/src/pages/avatar-decoration-edit-dialog.vue b/packages/frontend/src/pages/avatar-decoration-edit-dialog.vue
index bc61924d5d..a841f27965 100644
--- a/packages/frontend/src/pages/avatar-decoration-edit-dialog.vue
+++ b/packages/frontend/src/pages/avatar-decoration-edit-dialog.vue
@@ -37,7 +37,7 @@ SPDX-License-Identifier: AGPL-3.0-only
{{ i18n.ts.image }}
-
changeImage(ev, avatarDecoration)">{{ i18n.ts.selectFile }}
+
{{ i18n.ts.selectFile }}
{{ i18n.ts.imageUrl }}
@@ -174,10 +174,10 @@ async function del() {
});
}
-async function changeImage(ev, avatarDecoration) {
+async function changeImage(ev) {
const file = await selectFile(ev.currentTarget ?? ev.target, null);
if (file != null) {
- avatarDecoration.url = file.url;
+ url.value = file.url;
}
}