refactor: 不要な定義を削除

This commit is contained in:
yukineko 2023-11-20 18:10:40 +09:00
parent 1c1259493d
commit 625e1054db
No known key found for this signature in database
GPG Key ID: E5BACB72109B7B90
1 changed files with 1 additions and 2 deletions

View File

@ -49,8 +49,7 @@ let avatarDecorations: any[] = $ref([]);
async function selectImage(decoration, ev) {
const file = await selectFile(ev.currentTarget ?? ev.target, null);
const candidate = file.name.replace(/\.(.+)$/, '');
decoration.name = candidate;
decoration.name = file.name.replace(/\.(.+)$/, '');
decoration.url = file.url;
}