safety check on upload on sprite name

This commit is contained in:
Wolfsblvt 2025-02-20 19:05:20 +01:00
parent a58e026a40
commit 19e2a2f7d2

View File

@ -1699,7 +1699,8 @@ async function onClickExpressionUpload(event) {
const handleExpressionUploadChange = async (e) => {
const file = e.target.files[0];
if (!file) {
if (!file || !file.name) {
console.debug('No valid file selected');
return;
}