Fix undefined reference
| @@ -803,7 +803,7 @@ export function getImageSizeFromDataURL(dataUrl) { | ||
| 803 | 803 | |
| 804 | 804 | export function getCharaFilename(chid) { |
| 805 | 805 | const context = getContext(); |
| 806 | 806 | const fileName = context.characters[chid ?? context.characterId]?.avatar; |
| 807 | 807 | |
| 808 | 808 | if (fileName) { |
| 809 | 809 | return fileName.replace(/\.[^/.]+$/, ''); |